[gradsusr] problem for a single colour bar for many plot

saeed bayat saeedbayat7276 at gmail.com
Mon Jan 3 07:14:24 EST 2011


Hi Ismaila
I think that You should use one "run cbarn" command in your script. I hope
that it will be fix your problem.
good luck

On Mon, Jan 3, 2011 at 1:43 PM, Ismaila Diallo <ismailadiallo64 at yahoo.fr>wrote:

>
>
> Hi grads user's,
>
>
> Happy new year and my best wishes. So i need a script who help me to plot
> one
> colour bar for many plot in one page. therefore the plot bar that i use are
> cbar
>
> or cbarn or cbarm.
> There you have my script with four plot:
>
> sdfopen rain.nc
> q file
> set display color white
> set lon -10 20
> set lat 0 25
> set mpdset hires
> set clevs 0 2 4 6 8 10 12 14 16
> set gxout shaded
> set vpage 0 5.5 4.25 8.5
> define aa=ave(rt,t=1,t=3)
> d aa
> run cbarn
> draw title JJA
>
> set vpage 5.5 11 4.25 8.5
>
>
> set display color white
> set lon -10 20
> set lat 0 25
> set mpdset hires
> set clevs 0 2 4 6 8 10 12 14 16
> set gxout shaded
> define bb=ave(rt,t=4,t=6)
> d bb
> draw title JFM
>
> set display color white
> set lon -10 20
> set lat 0 25
> set mpdset hires
> set clevs 0 2 4 6 8 10 12 14 16
> set gxout shaded
> set vpage 0 5.5 0 4.25
> define cc=ave(rt,t=7,t=9)
> d cc
>
> run cbarn
> draw title AMJ
>
> set vpage 5.5 11 0 4.25
> set display color white
> set lon -10 20
> set lat 0 25
> set mpdset hires
> set clevs 0 2 4 6 8 10 12 14 16
> set gxout shaded
> define dd=ave(rt,t=10,t=12)
> d dd
> run cbarn
> draw title OND
>
> printim image.jpg
> eog image.jpg
>
>
>
> There is my script but here for each plot you have a colour bar. Now i
> would
> like to get one colour bar for all this four plot. How must i do?????
> Hope in you great help
>
> Sincerely
> cheers!!!
> ismaila
>
>
>
> _______________________________________________
> gradsusr mailing list
> gradsusr at gradsusr.org
> http://gradsusr.org/mailman/listinfo/gradsusr
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20110103/989d85cc/attachment-0003.html 


More information about the gradsusr mailing list