Re: the sky is falling down again [message #52365 is a reply to message #52359] |
Tue, 30 January 2007 09:01   |
Foldy Lajos
Messages: 268 Registered: October 2001
|
Senior Member |
|
|
On Tue, 30 Jan 2007, Reimar Bauer wrote:
> Hi all
>
> here is another example which is very funny if you see it the first time
>
> a=indgen(10)*1D-7
> b=a
> plot,a,b,psym=1
> oplot,[0,10],[0,10]
>
> because the coordination system is defined by plot it could be a bug too
> and not only a question about precisions
>
>
> Any idea what is happen here?
>
> Cheers
> Reimar
>
add after plot:
print, 'normal x coord:', !x.s[0]+!x.s[1]*10.
print, 'device x coord:', (!x.s[0]+!x.s[1]*10.)*!d.x_size
you will get:
normal x coord: 8781250.3
device x coord: 5.6200002e+09
The pixel value is greater than the max. value for a 32 bit integer,
so anything can happen.
regards,
lajos
|
|
|