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

Home » Public Forums » archive » Yet Another IDL 8.2.3 Anomoly with Window Refresh
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Yet Another IDL 8.2.3 Anomoly with Window Refresh [message #84914] Tue, 18 June 2013 10:04 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Folks,

I have some function graphics code that produces a box axes on a map.
Because this involves a lot of "after the fact" manipulation, I usually
turn window refreshing off so the user doesn't have to see all the
machinations. But, the window refresh has seemingly gone South in IDL
8.2.3.

Here is an example program. It works perfectly until you set the REFRESH
keyword. Then, you just see a big cross in the graphics window. :-(

;***********************************************
PRO Window_Refresh_Bug, Refresh=refresh
win = Window()
IF Keyword_Set(refresh) THEN win.refresh, /Disable
mp = Map('Equirectangular', CENTER_LONGITUDE=180, $
BOX_AXES=1, GRID_LATITUDE = 30, GRID_LONGITUDE = 45, $
LABEL_POSITION=0, LIMIT=[-89.99, 0, 89.99, 360], CURRENT=win)
mp['Latitudes'].label_angle=90
mp['Longitudes'].label_angle=0
grid = MapGrid( $
LONGITUDE_MIN=0, LONGITUDE_MAX=360, $
LATITUDE_MIN=-90, LATITUDE_MAX=90, $
GRID_LONGITUDE=45, GRID_LATITUDE=30, $
LABEL_POSITION=1, CURRENT=win)
FOREACH g,grid.latitudes DO g.label_angle=270
FOREACH g,grid.longitudes DO g.label_angle=0
c = MapContinents(Color=!Color.red)
IF Keyword_Set(refresh) THEN win.refresh
END
;***********************************************

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: structure length in files
Next Topic: convert byte array [48,1221] to float

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

Current Time: Wed Oct 08 17:00:50 PDT 2025

Total time taken to generate the page: 0.00426 seconds