[gradsusr] RES: Help with bar plotting using GrAds

Jose Augusto Paixão Veiga veiga.uea at gmail.com
Sat Mar 17 22:04:22 EDT 2012


Dear Everaldo, Thanks for your help.

I followed your detailed description, however the "problem" still persist.

I changed my script following your suggestion and part of it is described bellow.

'set t 1 12'
'set gxout bar';'set vrange -5 7';'set barbase 0';'set baropts outline';'set bargap 70';'set ccolor 2'
'set cthick 6'


'd var1'

'set t 1 12'
'set gxout bar';'set vrange -5 7';'set barbase 0';'set baropts outline';'set bargap 70';'set ccolor 4'
'set cthick 6'

'd var2'

'set t 1 12'
'set gxout bar';'set vrange -5 7';'set barbase 0';'set baropts outline';'set bargap 70';'set ccolor 9'
'set cthick 6'

'd var3'


But, the three bars are still together (see attached file). The only difference from my original figure is that in your example the bars are not "color filled". Eu gostaria de ter uma barra do lado da outra, i. e., três barras para cada mês (e não uma em cima da outra).

Any other hint ?

 


José Augusto P. Veiga, 

======================================
Universidade do Estado do Amazonas 
Departamento de Meteorologia
Escola Superior de Tecnologia (EST)
-----------------------------------------------------------------------------
Av. Darcy Vargas, 1200, Manaus-AM Brasil
Work phone:    (92) 3878 4323
Skype: veiga_j.a.p.
-----------------------------------------------------------------------------
CV: http://lattes.cnpq.br/4027612512091565
URL:http://scientificmet.wordpress.com/
http://nmet.wordpress.com/
-----------------------------------------------------------------------------



On Mar 17, 2012, at 9:07 PM, Everaldo B. de Souza - UFPA wrote:

> Dear Jose Augusto Salsicha,
> You can use baropts outline, varying values for bargap, something like this:
>  
> 'set t 1 12';  'set gxout bar'
> 'set vrange -5 7'; 'set barbase 0'; 'set baropts outline'; 'set bargap 40'; 'set ccolor 2'; 'set cthick 6'
> 'd var1'
>  
> 'set vrange -5 7';  'set barbase 0'; 'set baropts outline'; 'set bargap 60'; 'set ccolor 4'; 'set cthick 6'
> 'd var2'
>  
> 'set vrange -5 7'; 'set barbase 0'; 'set baropts outline'; 'set bargap 80'; 'set ccolor 9'; 'set cthick 6'
> 'd var3'
>  
> um abraço, Eve.
>  
>  
> De: gradsusr-bounces at gradsusr.org [mailto:gradsusr-bounces at gradsusr.org] Em nome de Jose Augusto Paixão Veiga
> Enviada em: sábado, 17 de março de 2012 18:06
> Para: GrADS Users Forum
> Assunto: [gradsusr] Help with bar plotting using GrAds
>  
> Dear all,
>  
> I need some help to plot a graph using the set gxout bar command. 
>  
> I want to plot one variable from three different sources, so when I use the commands bellow as part of my main script:
>  
> 'set t 1 12'
> 'set gxout bar'
> 'set bargap 70'
> 'set barbase 0'
>  
> 'set vrange -5 7'
>  
> 'd var1'
> 'd var2'
> 'd var3'
>  
> I get a graph like the attached file. However, in this case the GrAds software plots every single variable in just "one" bar, i. e., for January we can see the results "superposed" to each other. But I prefer to have three bars for each month plotted instead "one" bar containing three values. So, how can I change it to get the plot I need?  
>  
> Any hint will be very welcomed.
>  
>  
> José Augusto P. Veiga, 
> 
> ======================================
> Universidade do Estado do Amazonas 
> Departamento de Meteorologia
> Escola Superior de Tecnologia (EST)
> -----------------------------------------------------------------------------
> Av. Darcy Vargas, 1200, Manaus-AM Brasil
> Work phone:    (92) 3878 4323
> Skype: veiga_j.a.p.
> -----------------------------------------------------------------------------
> CV: http://lattes.cnpq.br/4027612512091565
> URL:http://scientificmet.wordpress.com/
> http://nmet.wordpress.com/
> -----------------------------------------------------------------------------
>  
> <image002.jpg>
> _______________________________________________
> 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/20120317/68affa5e/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Fig1a_10thICSHMO.png
Type: image/png
Size: 5415 bytes
Desc: not available
Url : http://gradsusr.org/pipermail/gradsusr/attachments/20120317/68affa5e/attachment-0003.png 


More information about the gradsusr mailing list