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...
|