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
Re: Yet Another IDL 8.2.3 Anomoly with Window Refresh [message #84919 is a reply to message #84914] Tue, 18 June 2013 11:32 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mardi 18 juin 2013 19:04:51 UTC+2, David Fanning a écrit :
> 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.")

If you manually push the third button from the left in the window, you get the right plot!
Very strange.
alain.
[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: Sun Oct 12 07:15:32 PDT 2025

Total time taken to generate the page: 0.47978 seconds