[gradsusr] RES: Help with bar plotting using GrAds

Ismaila Diallo ismailadiallo64 at yahoo.fr
Sun Mar 18 05:42:40 EDT 2012


Hi Jose

When setting the doing do like this

for the 1sr plot
set t 1 12
d var1
for the 2nd plot
set t 1.3 12.3
d var2
for the 3rd file
set t 1.6 12.6
d var3

Hope in this help.

Regards

I-



________________________________
 From: "gradsusr-request at gradsusr.org" <gradsusr-request at gradsusr.org>
To: gradsusr at gradsusr.org 
Sent: Sunday, March 18, 2012 3:04 AM
Subject: gradsusr Digest, Vol 25, Issue 26
 
Send gradsusr mailing list submissions to
    gradsusr at gradsusr.org

To subscribe or unsubscribe via the World Wide Web, visit
    http://gradsusr.org/mailman/listinfo/gradsusr
or, via email, send a message with subject or body 'help' to
    gradsusr-request at gradsusr.org

You can reach the person managing the list at
    gradsusr-owner at gradsusr.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gradsusr digest..."


Today's Topics:

   1. Re: RES:  Help with bar plotting using GrAds
      (Jose Augusto Paix?o Veiga)


----------------------------------------------------------------------

Message: 1
Date: Sat, 17 Mar 2012 22:04:22 -0400
From: Jose Augusto Paix?o Veiga <veiga.uea at gmail.com>
Subject: Re: [gradsusr] RES:  Help with bar plotting using GrAds
To: GrADS Users Forum <gradsusr at gradsusr.org>
Message-ID: <C785247C-5B13-4168-BB87-CD774A489E0F at gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

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

------------------------------

_______________________________________________
gradsusr mailing list
gradsusr at gradsusr.org
http://gradsusr.org/mailman/listinfo/gradsusr


End of gradsusr Digest, Vol 25, Issue 26
****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20120318/e45a872c/attachment-0003.html 


More information about the gradsusr mailing list