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

Home » Public Forums » archive » Graphics Bug
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
Graphics Bug [message #13089] Tue, 13 October 1998 00:00
ashmall is currently offline  ashmall
Messages: 14
Registered: October 1998
Junior Member
I've found a bug that causes some of a plot to not be displayed. It occurs
if a dialog box is used immediately after a plot command. Although the problem
is easily solved, I got really confused since it appeared that I was missing
data.
I sent this to FPS (the UK sellers of IDL) but never heard anything back; it
may be of interest to some of you.

Justin.


pro colour_bug
;Justin Ashmall, 8th Sept 98, justin@ic.ac.uk
;Bug reproduced using Win NT4, Intel PII 350Mhz processor
;Using true-colour display
;IDL 5.1.1

;It seems that if a modal dialog follows immediately
;after the plot the whole display does not get updated
;(still buffered?). On my display, when the dialog
;box appears, the colour of the last ~1/8 of the sine
;curve has not changed.
;Putting in a short wait or an EMPTY command solves
;the problem.


;******* Define some colour variables in hex *******
colour=['00FFFF'XL,'0000FF'XL,'00FF00'XL,$
'FFFF00'XL,'FF0000'XL,'FF00FF'XL,$
'0080FF'XL,'FFFFFF'XL]

x=findgen(1000)*2*!pi/1000
y=sin(x)

plot,x,y,COLOR=colour[7] ;plot the lot in white first


for i=0,7 do begin

;over plot in various colours
oplot,x,y,COLOR=colour[i]

;Uncomment either of the next 2 commands
;to solve the problem.
;wait,0.1
;empty
dummy=dialog_message("Continue?")

endfor
end
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: re: re:IDL / ENVI help with MNF masking
Next Topic: Re: IDL / ENVI help with MNF masking

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

Current Time: Wed Oct 08 13:52:16 PDT 2025

Total time taken to generate the page: 0.00491 seconds