Try this:
window
for i=0,500 do plots,[i,i,i],[300,301,302],/device,psym=3
On my platform {alpha OSF unix 5.1 Apr 13 1998}, this does
*not* draw all the pixels that should be filled. Instead,
some pixel columns are left out, making the drawn "line"
appear as a striped band (with variable stripe pattern). Is
this the case for other platforms as well?
I assume it's caused by some calculations w/round off error
to/from normalized coordinates or such.
It's quite weird, cause I get correct results for the
following loop:
for i=0.0,500,1.0000001 do plots,[i,i,i],[300,301,302],/device,psym=3
*and* for the following:
for i=0.0,500,.9999999 do plots,[i,i,i],[300,301,302],/device,psym=3
But not for this:
for i=0.0,500,1.0 do plots,[i,i,i],[300,301,302],/device,psym=3
(So it's not simply the *type* of the variable i that's causing this..)
Doesn't quite make sense, does it?
Regards,
Stein Vidar
|