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

Home » Public Forums » archive » Re: IDL 8.2.2 and PLOT with NaN values
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: IDL 8.2.2 and PLOT with NaN values [message #83679] Fri, 29 March 2013 08:36 Go to previous message
chris_torrence@NOSPAM is currently offline  chris_torrence@NOSPAM
Messages: 528
Registered: March 2007
Senior Member
On Tuesday, March 26, 2013 9:59:36 AM UTC-6, Karlo Janos wrote:
> Hi group,
>
>
>
> can somebody confirm, that the PLOT function in IDL 8.2.2 produces the
>
> "arithmetic error: Floating illegal operand" when plotting a vector
>
> which contains NaN values?
>
>
>
> Example:
>
> p = PLOT([1,2,3,4,!VALUES.F_NAN,6,7,8,9])
>
>
>
> If I remember correctly, the former versions of IDL just skipped the
>
> NaNs without any error message.
>
>
>
> I am frustrated...
>
>
>
> Thanks
>
>
>
> Karlo

Hi Karlo,

This bug has now been fixed, and will be in the next IDL release. Thanks for reporting it!

In case you're interested, we added code to compute the maximum value of the plot, so that we could adjust the plot margins in case the Y range was huge. We just needed to use /NAN when computing the maximum, so that NaN values would be skipped.

Cheers,
Chris
ExelisVIS
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: A Healthy Alternative to Takeaway Regret
Next Topic: cursor command

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

Current Time: Wed Oct 08 15:11:38 PDT 2025

Total time taken to generate the page: 0.00410 seconds