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

Home » Public Forums » archive » colorbar inside the plot
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
colorbar inside the plot [message #76361] Wed, 01 June 2011 12:31 Go to previous message
kisCA is currently offline  kisCA
Messages: 78
Registered: January 2011
Member
Hi there,

I got this code which plot what i want but doesn't put the colorbar
outside of the plot as it used to... Any Ideas?

nlevels = 20
levels = -100+indgen(20)*10
pos = [0.1, 0.1, 0.9, 0.75]
LoadCT, 33, NColors=nlevels, Bottom=1
lonW=0 & lonE=360 & latS=-20 & latN=90 &
limitplot=[latS,lonW,latN,lonE]
map_set,/orthographic,34.5,-117.7,limit=limitplot
PS_start,filename='testpv.ps',/nomatch,charsize=0.8
cgcontour, pv,lon,lat, NLevels=nlevels,levels=levels, /
cell_Fill,C_Colors=Indgen(nlevels)
+1,xrange=[-180,179],xstyle=1,Position=pos,charsize=1,/close d,/
overplot
map_continents & map_grid
cgcolorbar, RANGE=[-100,100],NColors=nlevels, Bottom=1,
Format='(F0.1)',Divisions=nlevels/2, XMinor=0
Ps_end,/png

Thanks

Cheers
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Error when using !NULL as a property value. Bug or feature?
Next Topic: IDL 8 on a Laptop

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

Current Time: Wed Oct 08 19:34:52 PDT 2025

Total time taken to generate the page: 0.00372 seconds