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 #76359] Wed, 01 June 2011 12:51 Go to previous message
kisCA is currently offline  kisCA
Messages: 78
Registered: January 2011
Member
On Jun 1, 12:37 pm, David Fanning <n...@idlcoyote.com> wrote:
> 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.")- Hide quoted text -
>
> - Show quoted text -

Thanks...

In fact, it's more a pb with cgcontour and position than the colorbar
pb. I should have said that i tried to move/change the cgcontour plot
while changing the pos array but nothing moves...
[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: Wed Oct 08 19:13:59 PDT 2025

Total time taken to generate the page: 0.00596 seconds