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

Home » Public Forums » archive » Re: 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
Re: Annoyances...how about this one? [message #12809 is a reply to message #12806] Wed, 09 September 1998 00:00 Go to previous messageGo to previous message
rmlongfield is currently offline  rmlongfield
Messages: 68
Registered: August 1998
Member
Hi All,
I put Stein's examples in an idl procedure producing 4 windows and run it on:
print,!version { mipseb IRIX unix 5.0 Apr 28 1997}

I get good results for IDL Windows 0,1 and 3 but see the gaps in window 2,
which is NOT the same window where Stein got his gaps. David Fanning's
Windows NT gets no gaps? Well, maybe something with Unix then, but
inconsistent over different platforms. Anybody try it with Linux?

Rose

-----------program------------------------------------------ -------------------
PRO stein_test
;Try this:

window,0
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:
window,1
for i=0.0,500,1.0000001 do plots,[i,i,i],[300,301,302],/device,psym=3

;*and* for the following:
window,2
for i=0.0,500,.9999999 do plots,[i,i,i],[300,301,302],/device,psym=3

;But not for this:
window,3
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..)

end

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Display widgets' scaling factors
Next Topic: Re: linked file yes or no

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

Current Time: Sun Nov 30 10:30:18 PST 2025

Total time taken to generate the page: 0.00966 seconds