1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217
|
.ig >>
<STYLE TYPE="text/css">
<!--
A:link{text-decoration:none}
A:visited{text-decoration:none}
A:active{text-decoration:none}
OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }
H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: proc line</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
<table cellpadding=2 width=550><tr>
<td><br><h2>proc line</h2></td>
<td align=right>
<small>
<a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
Version 2.33 Jun'06
</small><br><a href="../doc/scripthome.html">Scripts</a>
<td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>
.TH proc_line PL "02-JUN-2006 PL ploticus.sourceforge.net"
.ig >>
<center>
<img src="../gallery/line0.gif">
</center>
.>>
.LP
\fBproc line\fR may be used to draw arbitrary lines in scaled space or absolute space.
It is typically used for annotations, etc.
To plot a line or curve from data, see
.ig >>
<a href="lineplot.html">
.>>
\0proc lineplot.
.ig >>
</a>
.>>
See also
.ig >>
<a href="drawcommands.html">
.>>
\0proc drawcommands.
.ig >>
</a>
.>>
.ig >>
<br><br><br>
.>>
.SH Attributes
The \fCpoints\fR attribute \fBmust\fR be specified.
.ig >>
<br><br>
.>>
.LP
\fBpoints\fR
.ig >>
.>>
.ig >>
<a href="attributetypes.html#text">
.>>
\0multiline-text
.ig >>
</a>
.>>
.IP \0
A list of points. One or more lines. Ends at first empty (blank) line.
Each line may have one coordinate pair or two. If \fBtwo\fR, the
first point is the beginning of a line, and the second point is the end
of a line. If \fBone\fR, the point is taken as a continuation of line
from previous point.
.br
Example 1:
.nf
points: 1.0 3.0 1.0 4.5
3.0 4.5
3.0 3.0
.fi
Example 2:
With \fClocval\fR notation (the default), you can do things like this:
.nf
points: min 0(s) max 0(s)
.fi
.ig >>
<a href="attributetypes.html#locvalue">
.>>
\0More info on locval notation
.ig >>
</a>
.>>
.ig >>
<br><br>
.>>
.LP
\fBnotation\fR
.ig >>
.>>
\fCabsolute | scaled | locval\fR
.IP \0
Specifies whether points are to be taken as locations in absolute
space, scaled space, or
.ig >>
<a href="attributetypes.html#locvalue">
.>>
\0location values.
.ig >>
</a>
.>>
Default is \fClocval\fR.
.br
Example: \fCnotation: scaled\fR
.ig >>
<br><br>
.>>
.LP
\fBlinedetails\fR
.ig >>
.>>
.ig >>
<a href="linedetails.html">
.>>
\0linedetails
.ig >>
</a>
.>>
.IP \0
Details controlling the rendering of the line.
.br
Example: \fClinedetails: width=3 color=green\fR
.ig >>
<br><br>
.>>
.LP
\fBanchor\fR
.ig >>
.>>
x y
.IP \0
If specified, the \fCpoints\fR still specifies how the lines are to be drawn, but
lines are drawn relative to \fIx, y\fR.
\fIx\fR and \fIy\fR should be in absolute space.
Does not work for values in scaled space, so \fCnotation\fR should be \fCabsolute\fR
or \fClocval\fR with no \fC(s)\fR values.
This can be used to specify elaborate sets of \fCpoints\fR once, then render the figure
multiple times in different locations. Versions 2.31+
.IP \0
The following example draws a 1" square in two locations:
.nf
#proc line
#saveas D1
anchor: 2 3
points: 0 0 0 1
1 1
1 0
0 0
#proc line
#clone D1
anchor: 4 4
.fi
.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif">
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>
|