Bar Charts
Jennifer Adams
jma at COLA.IGES.ORG
Fri Apr 18 07:59:33 EDT 2008
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080418/26dabd74/attachment.html
More information about the gradsusr
mailing list