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

Home » Public Forums » archive » Make the plots invisible
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: Make the plots invisible [message #82086 is a reply to message #82045] Thu, 15 November 2012 04:36 Go to previous messageGo to previous message
lecacheux.alain is currently offline  lecacheux.alain
Messages: 325
Registered: January 2008
Senior Member
Le mercredi 14 novembre 2012 18:30:25 UTC+1, David Fanning a écrit :
> David Fanning writes:
>
>
>
>> Seriously? No help whatsoever!?
>
>
>
> By the way, the article only seeks to record the
>
> time it takes to render the graphics result, not
>
> the time it takes to write the code! This is a
>
> learning experience, after all. :-)
>
>
>
> http://www.idlcoyote.com/cg_tips/compcont.php
>
>
>
> Cheers,
>
>
>
> David
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Hi David,
Ten minutes with your example gave me the following:

;-----------------------------------
restore, 'air.nc.data.sav'
t = systime(1)

Loadct, 53, RGB_TABLE=rgb
rgb = reverse(rgb,1)

nlevels = 12
levels = round((max(data, MIN=mindata) - floor(mindata))*findgen(nlevels)/nlevels) + floor(mindata)
levels = [levels[0], levels]

win = Window(Dimension=[640, 512])
win.Refresh, /DISABLE

mp = map('Equirectangular', CENTER_LONGITUDE=180, $
POSITION=[0.1,0.05,0.95,0.80], $
LABEL_POSITION = 0, BOX_AXES=1, $
GRID_LATITUDE = 30, GRID_LONGITUDE = 45, $
/CURRENT)
mp['Longitudes'].LABEL_ANGLE = 90

cn = contour(data, lon, lat, /OVERPLOT, $
GRID_UNITS=2, MAP_PROJECTION='Equirectangular', $
RGB_TABLE=rgb, /CURRENT, $
C_VALUE=levels, /FILL)

cb = COLORBAR(POSITION=[0.1, 0.91, 0.95, 0.95], $
BORDER=1, TARGET=cn, TICKVALUES=levels)

m = MapContinents(COLOR=!Color.red)

win.Refresh

print,'elaps:', systime(1) - t

end
;------------------------------------------

looking to solve most of the issues you pointed out.
I do not understand the '0°E' appearing twice along X-axis. A NG bug ? Who knows ?

alain.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Function Graphics Take Home Message
Next Topic: Re: Quick question... OS Version

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

Current Time: Wed Oct 08 17:17:15 PDT 2025

Total time taken to generate the page: 0.00410 seconds