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

Home » Public Forums » archive » A bug of NG plot?
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: A bug of NG plot? [message #85535 is a reply to message #85531] Thu, 15 August 2013 05:07 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Xin Tao writes:

> The following code can produce some very messy figure from NG plot.
>
> IDL> print, !version
> { x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
>
> IDL> g=dblarr(10)*0.0+5.0
> IDL> ga=g+1e-14*double(randomu(-10,10))
> IDL> a=plot(ga)
>
> The size of chars is just not right. I don't know whether it's my problem or it's a bug of IDL. Could someone please let me know how to fix this?

Honestly, I think it is your problem:

IDL> print, ga, format='(f0.15)'
5.000000000000009
5.000000000000005
5.000000000000005
5.000000000000002
5.000000000000004
5.000000000000005
5.000000000000010
5.000000000000009
5.000000000000003
5.000000000000009

Try this:

p = plot(ga-5.0D)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Map issue wth IDL8 new graphics: conformal or equal-area maps in rectangular shape
Next Topic: Keyboard/Input focus: MS windows vs linux

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

Current Time: Wed Oct 08 19:25:38 PDT 2025

Total time taken to generate the page: 0.00360 seconds