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

Home » Public Forums » archive » Annoyances...how about this one?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Annoyances...how about this one? [message #12823] Tue, 08 September 1998 00:00 Go to next message
steinhh is currently offline  steinhh
Messages: 260
Registered: June 1994
Senior Member
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
Re: Annoyances...how about this one? [message #12914 is a reply to message #12823] Mon, 14 September 1998 00:00 Go to previous message
Imanol Echave is currently offline  Imanol Echave
Messages: 26
Registered: May 1998
Junior Member
Hi people:

I've tested the program on my platform { x86 linux unix 5.0 Apr 28 1997} and I
obtain the Stein's results, only the second and third lines are perfect.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: call external speed
Next Topic: Re: Trouble running IDL3 widget programme on IDL4/IDL5

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

Current Time: Fri Oct 10 07:35:36 PDT 2025

Total time taken to generate the page: 0.64040 seconds