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

Home » Public Forums » archive » Re: 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
Re: colorbar inside the plot [message #76360 is a reply to message #76359] Wed, 01 June 2011 12:37 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
kisCA writes:

> 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

Well, put it wherever you want it! That's, uh,
sort of the purpose of the POSITION keyword. :-)

Cheers,

David



--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: re-binning with linear interpolation
Next Topic: Re: Bug in object selection in iTools and Graphics

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

Current Time: Fri Oct 10 13:59:54 PDT 2025

Total time taken to generate the page: 1.12546 seconds