comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Longword plotting problems...
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Longword plotting problems... [message #11980] Mon, 22 June 1998 00:00 Go to previous message
Andy Loughe is currently offline  Andy Loughe
Messages: 174
Registered: November 1995
Senior Member
Geraint H. Jones wrote:

>
> ; Example code
>
> time=lindgen(10)+13254100
>
> data=findgen(10)
>
> plot,time,data
>
> ; Just to show that time should increase smoothly in the plot
>
> print,time



Hmmm!?
Here is a work-around...

num_pts=10
time=lindgen(num_pts)+13254100
data=findgen(num_pts)

xticknames=strtrim(time,2)

plot, time-13254100, data, xtickname=xticknames, xticks=num_pts-1, $
/xstyle, xmargin=[9,9], ymargin=[7,7], $
xtitle='Time', ytitle='Data Values', $
title='A Decent Plot', subtitle='(Seconds since 1950)'


--
Andrew F. Loughe |
afl@cdc.noaa.gov
University of Colorado, CIRES Box 449 |
http://cdc.noaa.gov/~afl
Boulder, CO 80309-0449 | phn:(303)492-0707
fax:(303)497-7013
------------------------------------------------------------ ---------------
"I do not feel obliged to believe that the same God who has endowed us
with
sense, reason, and intellect has intended us to forego their use."
-Galileo
[Message index]
 
Read Message
Read Message
Previous Topic: Re: IDL Object for creating a Singleton
Next Topic: Color Postscript from Object Graphics.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Thu Oct 09 23:09:32 PDT 2025

Total time taken to generate the page: 0.48049 seconds