axis label position and ticks

Matt Georgescu matt1 at CEP.RUTGERS.EDU
Tue May 3 12:27:11 EDT 2005


Henrique - Instead of using the GrADS default title commands (eg draw
title or draw ylab) I typically set a string characteristic and draw the
string explicitly.  The disadvantage is that one has to use more than 1
line to accomplish drawing labels and the such:

*set strsiz hsiz - This command sets the string character size, where hsiz
is the width of the character*
'set strsiz 0.14'
*set string color <justification <thickness <rotation>>>
'set string 1 r 2'
'draw string 10.25 7.5 U.S. Averaged Precip.'

* From Grads Users-Manual:
http://grads.iges.org/grads/gadoc/gadocindex.html

matt

On Tue, 3 May 2005, Henrique Barbosa wrote:

> Dear All,
>
> Is it possible to determine the position (or better the offset)
> where an axis title will be drawn? when I use
>
> 'draw ylab my_yaxis_title'
>
> grads automatically calculates the offset from the border
> of the graph so that there is enough space for the numbers.
>
> I tried to do:
>
> 'set ylpos offset side'
>
> But that change the position of the axis, and not of its title.
>
> Second doubt: is it possible to draw only the axis ticks, without
> the numbers? I tried
>
> 'set ylab " "'        * show the double quotes, instead of a blank
> 'set ylab '           * give an error
>
> without success.
>
> Henrique Barbosa
>



More information about the gradsusr mailing list