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 
Return to the default flat view Create a new topic Submit Reply
Annoyances...how about this one? [message #12823] Tue, 08 September 1998 00:00 Go to previous 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
[Message index]
 
Read Message
Read Message
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: Sat Oct 11 01:07:21 PDT 2025

Total time taken to generate the page: 0.23929 seconds