login

draws.gs

Top / GrADS / script / draws.gs

Japanese / English

Name

draws - Draw string at the position specified relative to the figure.

Synopsis

draws
   ( [-by figure] [-pos position] [-base base]
   | -by (world | grid | xy) xpos ypos )
    [(-xoffset | -xo) xoffset] [(-yoffset | -yo) yoffset]
    [-color color] [-setfont size] [-angle angle]
    string

Description

To show help, simply run "draws".

Options

-by type
Coordinate type. "figure" (relative to figure), "world", "grid", or "xy". Defalut value is "figure".
-pos position
Position to draw string. Only for "-by figure". Default value is "tc".
-base base
Base position of the string. Only for "-by figure".
xpos, ypos
Position.
(-xoffset | -xo) xoffset
Horizontal offset. Default value is "0".
(-yoffset | -yo) yoffset
Vertical offset. Default value is "0".
-color color
Font color. Default value is "1".
-setfont size
Size for setfont.gs.
-angle angle
Rotation angle of string in degree. Default value is "0".
string
String to draw. Specify it as the last option.

Possible value of position and base

value position relative to the figure or position
tc Top center
bc Buttom center
tl Top left
bl Buttom left
tr Top right
br Buttom right
l Left
r Right

Examples

(1) Draw string "U[m/s]" at the top left of the figure.

ga-> draws -pos tl U[m/s]

(2) Draw string "Temperature" at the top of the figure with specified font size.

ga-> set strsiz 0.15 0.15
ga-> draws -pos tc Temperature

(3) Draw x- and y-axis labels

ga-> d t
Contouring: 240 to 310 interval 10
ga-> draws -pos bc -yo -0.2 -setfont normal longitude
ga-> draws -pos l -xo -0.3 -setfont normal -angle 90 latitude
ga-> printim draws_sample3.eps

Script source code