Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 28842e744495811080ce537d0b6dab00 > files > 111

grads-2.0.a9-0.2.fc15.i686.rpm

<!--Copyright (C) 1988-2005 by the Institute of Global Environment and Society (IGES). See file COPYRIGHT for more information.-->

<html>
<head>
<title>GrADS Command: set arrlab</title>
</head>
<body bgcolor="e0f0ff" text="#000000">

<h2><b>set arrlab</b></h2>
<p>
<code>set arrlab on|off</code>
<p>
Toggles drawing the vector arrow label for plots drawn with 
<code><a href="gradcomdsetgxout.html">set gxout vector</a></code>. 

The default is <code><i>on</i></code> and "sticks" until reset by another 
<code>set arrlab</code> command. 

<p>
<h3>Usage Notes</h3>
<p>
The position of the arrow label is fixed to be in the bottom right
corner of the page, just under the plot. If you want it to appear
somewhere else, see the example below which demonstrates how to draw
an arrow key using GrADS graphical elements.

<p>
<h3>Examples </h3>
<p>
This example is a script sample that demonstrates how to turn off the default
vector arrow scale and draw another one at any specified location:
<pre>
'set gxout vector'
len = 0.3
scale = 2
xrit = 8.0
ybot = 0.5
'set arrscl 'len' 'scale
'set arrlab off'
'd u;v'
rc = arrow(xrit-0.25,ybot+0.2,len,scale)

function arrow(x,y,len,scale)
'set line 1 1 4'
'draw line 'x-len/2.' 'y' 'x+len/2.' 'y
'draw line 'x+len/2.-0.05' 'y+0.025' 'x+len/2.' 'y
'draw line 'x+len/2.-0.05' 'y-0.025' 'x+len/2.' 'y
'set string 1 c'
'set strsiz 0.1'
'draw string 'x' 'y-0.1' 'scale
return


</body>
</html>