Bar Charts

Steven Weiss sweiss at IAFRICA.COM
Mon Apr 21 04:32:48 EDT 2008


Hi Jennifer,

The skip and xlpos option works nicely!

Only thing with the skip() is that the bars get spaced quite far appart. Any way I can get them closer to together?
If I change the ctl file to 6hr steps, I get the bars as I need them but the variables seem to return incorrect values. Gribmap is unhappy reports some errors which I think is part of the problem.

Regards
Steven
  ----- Original Message ----- 
  From: Jennifer Adams 
  To: GRADSUSR at LIST.CINECA.IT 
  Sent: Friday, April 18, 2008 6:52 PM
  Subject: Re: Bar Charts


  Yes, skip() works on Z and T -- I will update the documentation. 


  The "expr" argument must be a 1-D or 2-D grid, and the skipx and skipy args should really be called skipi and skipj, since they skip over the I and J dimensions of "expr". 
  Jennifer




  On Apr 18, 2008, at 12:27 PM, Eric Altshuler wrote:


    Hi Jennifer,


    I thought the skip function was only for horizontal dimensions (X,Y). You are suggesting that it also works for T (or even Z)?


    Eric


    ----- Original Message -----
    From: "Jennifer Adams" <jma at COLA.IGES.ORG>
    To: GRADSUSR at LIST.CINECA.IT
    Sent: Friday, April 18, 2008 7:59:33 AM GMT -05:00 US/Canada Eastern
    Subject: Re: Bar Charts








    On Apr 16, 2008, at 8:31 AM, Steven Weiss wrote:






    Hi,




    I solved the 3 hr interval issue below by changing the ctl file to 6hr
    steps. The skip() function would have done the trick too:
    set t 1 last
    set x 1
    set y 1
    d skip(var,2)












    Can anyone help me on the multiple lines for X axis???




    Similar to the time step but I want to do my own labelling.
    The following may achieve your desired result -- I used 'q gxinfo' to get the x and y limits of the plot, which were


    Page Size = 11 by 8.5
    X Limits = 2 to 10.5
    Y Limits = 0.75 to 7.75




    Then I used these commands:Â


    'set xlpos -0.4'
    'set xlabs k | l | m | n | o '
    'set grads off'
    'd t'
    'set line 0'
    'draw recf 1.98 0.27 10.52 Â 0.70'
    'set xlpos -0.2'
    'set xlabs f | g | h | i | j '
    'd t'
    'draw recf 1.98 0.47 10.52 Â 0.70'
    'set xlpos 0'
    'set xlabs a | b | c | d | e '
    'set ccolor 1'
    'd t'




    Where t is a 1-dimensional time series. The labels "a" through "o" can be modified to suit your needs -- they can have more than one character and will be centered on each tic mark. The 'draw recf' commands are to cover up the extra axis line that you don't want to see. Another option is to use 'draw string' for each line of every tic label, but that may be more work than the above.Â




    Jennifer






























    Regards
    Steven




    ----- Original Message -----
    From: "Steven Weiss" < sweiss at IAFRICA.COM >
    To: < GRADSUSR at LIST.CINECA.IT >
    Cc: "Steven Weiss" < sweiss at IAFRICA.COM >
    Sent: Friday, April 11, 2008 9:26 AM
    Subject: Bar Charts












    Hi,




    I have 2 questions with regards to bar charts.




    1. I have grib in 3hr interval time steps. I want show a variable over 6hr
    time steps. e.g   t 1, t 3, t 9 etc.. I cannot see any obvious way to do
    this
    from within a script.




    2. How can I print the x axis labels over multiple lines. I notice that by
    default when the x axis labels are time steps, it prints the time,month
    and
    year of 3 lines. How can I embed a line break into the label?




    Regards
    Steven




    --
    Jennifer M. Adams
    IGES/COLA
    4041 Powder Mill Road, Suite 302
    Calverton, MD 20705
    jma at cola.iges.org


  --
  Jennifer M. Adams
  IGES/COLA
  4041 Powder Mill Road, Suite 302
  Calverton, MD 20705
  jma at cola.iges.org





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080421/a8650b7e/attachment.html 


More information about the gradsusr mailing list