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

Home » Public Forums » archive » Re: xrange woes
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: xrange woes [message #54920 is a reply to message #54911] Wed, 18 July 2007 11:02 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Josh writes:

> this is a new one for me...
> i'm plotting data points (~50) that are spread over a small x range
> (relative to the values). these data points lie at values around
> 2,000,000, but are spread over a range of about 0.01. I can use
> xrange=[x1,x2] up until the difference between x2 and x1 is about
> 0.25. If I try to make the range smaller, it is just ignored (and
> left at ~0.25) until the range decreases to 0.1 at which point the
> plotted x range jumps to ~30! The xstyle keyword follows the same
> pattern (works until the range is ~0.25, then is ignored).
>
> Has anyone else ever had this happen? Is there some limitation on how
> small xrange can be given the actual xvalues? btw, these data points
> have legitimate values to the standard double precision accuracy.

I don't know. This works perfectly for me:

IDL> data = dindgen(51) * 0.0001 + 2000000D
IDL> Window, XSIZE=1200, YSIZE=500
IDL> plot, data, time, xstyle=1, xtickformat='(f20.6)'
IDL> print, data[50] - data[0]
0.0049999998

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: how can idl find out information of other softwares
Next Topic: Re: zero-padding an array of arbitrary dimensionality (replacing execute in vm)

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

Current Time: Sat Oct 11 16:11:20 PDT 2025

Total time taken to generate the page: 0.79853 seconds