Another possible bug of the plot function in IDL8.2.3 [message #85270] |
Sun, 21 July 2013 05:28  |
Xin Tao
Messages: 40 Registered: April 2011
|
Member |
|
|
IDL> print, !version
{ x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
Here is the problem I have found. Not sure whether other people have reported this or not. I discovered this while making some plot using data from a simulation. So the numbers below might look strange to you.
IDL> print, mean_b
0.0024484981
IDL> print, maxb
0.047594825
IDL> print, minb
1.0000000e-18
IDL> a=plot([0,999], [minb,maxb], /ylog, yrange=[mean_b, maxb])
The y axis of this plot is totally wrong. There is something wrong with the use of YRANGE in this case. However, if I do the following, the resulting figure looks fine.
IDL> a=plot([0,999], [minb,maxb], /ylog)
IDL> a.yrange=[mean_b, maxb]
This sounds like a bug to me, but I'm not sure whether other people can reproduce this or not.
Xin
|
|
|
Re: Another possible bug of the plot function in IDL8.2.3 [message #85284 is a reply to message #85270] |
Mon, 22 July 2013 09:56   |
Mark Piper
Messages: 198 Registered: December 2009
|
Senior Member |
|
|
On Sunday, July 21, 2013 6:28:46 AM UTC-6, Xin Tao wrote:
> IDL> print, !version
>
> { x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
>
>
>
> Here is the problem I have found. Not sure whether other people have reported this or not. I discovered this while making some plot using data from a simulation. So the numbers below might look strange to you.
>
>
>
> IDL> print, mean_b
>
> 0.0024484981
>
> IDL> print, maxb
>
> 0.047594825
>
> IDL> print, minb
>
> 1.0000000e-18
>
> IDL> a=plot([0,999], [minb,maxb], /ylog, yrange=[mean_b, maxb])
>
>
>
> The y axis of this plot is totally wrong. There is something wrong with the use of YRANGE in this case. However, if I do the following, the resulting figure looks fine.
>
>
>
> IDL> a=plot([0,999], [minb,maxb], /ylog)
>
> IDL> a.yrange=[mean_b, maxb]
>
>
>
> This sounds like a bug to me, but I'm not sure whether other people can reproduce this or not.
>
>
>
> Xin
Hi Xin,
Yup, this is a bug, just reported last week & with the workaround you've found. Would you please send a quick email to Tech Support so they can add you to the ticket? It's IDL-68781.
mp
|
|
|
Re: Another possible bug of the plot function in IDL8.2.3 [message #85295 is a reply to message #85284] |
Tue, 23 July 2013 06:21  |
Xin Tao
Messages: 40 Registered: April 2011
|
Member |
|
|
Will do. Thanks for your reply.
Xin
On Tuesday, July 23, 2013 12:56:40 AM UTC+8, Mark Piper wrote:
> On Sunday, July 21, 2013 6:28:46 AM UTC-6, Xin Tao wrote:
>
>> IDL> print, !version
>
>>
>
>> { x86_64 darwin unix Mac OS X 8.2.3 May 2 2013 64 64}
>
>>
>
>>
>
>>
>
>> Here is the problem I have found. Not sure whether other people have reported this or not. I discovered this while making some plot using data from a simulation. So the numbers below might look strange to you.
>
>>
>
>>
>
>>
>
>> IDL> print, mean_b
>
>>
>
>> 0.0024484981
>
>>
>
>> IDL> print, maxb
>
>>
>
>> 0.047594825
>
>>
>
>> IDL> print, minb
>
>>
>
>> 1.0000000e-18
>
>>
>
>> IDL> a=plot([0,999], [minb,maxb], /ylog, yrange=[mean_b, maxb])
>
>>
>
>>
>
>>
>
>> The y axis of this plot is totally wrong. There is something wrong with the use of YRANGE in this case. However, if I do the following, the resulting figure looks fine.
>
>>
>
>>
>
>>
>
>> IDL> a=plot([0,999], [minb,maxb], /ylog)
>
>>
>
>> IDL> a.yrange=[mean_b, maxb]
>
>>
>
>>
>
>>
>
>> This sounds like a bug to me, but I'm not sure whether other people can reproduce this or not.
>
>>
>
>>
>
>>
>
>> Xin
>
>
>
> Hi Xin,
>
>
>
> Yup, this is a bug, just reported last week & with the workaround you've found. Would you please send a quick email to Tech Support so they can add you to the ticket? It's IDL-68781.
>
>
>
> mp
|
|
|