File: figurecommand.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (116 lines) | stat: -rw-r--r-- 4,487 bytes parent folder | download
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
<HTML>
<HEAD>
<TITLE>FIGURE command</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+3" color="green"><B>FIGURE command</B></font></P>

<TABLE border="1" cols="2" frame="box" rules="all" width="572">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%" valign="top"><CODE>
FIGURE ARROW style nheads x1 y1 x2 y2<br />
FIGURE RECTANGLE x1 y1 x2 y2<br />
FIGURE TRIANGLE x1 y1 x2 y2 x3 y3<br />
FIGURE ELLIPSE x1 y1 x2 y2</CODE>
</TD></TR>
<TR>
<TD valign="top"><B>Qualifiers</B>:</TD>
<TD valign="top"><CODE>\WORLD, \GRAPH, \PERCENT</CODE></TD></TR>
<TR>
<TD valign="top"><B>Defaults</B>:</TD>
<TD valign="top"><CODE>\WORLD</CODE></TD></TR>
</TABLE>
<P>
 This command is used to draw geometric figures. The figure type is chosen with the keyword
 (<CODE>ARROW</code>, <CODE>RECTANGLE</code>, <CODE>TRIANGLE</code>, or <CODE>ELLIPSE</code>).</p>
<P>
 <font size="+1" color="green"><B>Fillable figures</B></font></P>
<p>
 The figures are fillable, except for style 3 arrows. The
 <CODE><a href="../Characteristics/GeneralGraph/areafillcolor/areafillcolor.htm">AREAFILLCOLOR</a></code>
 characteristic controls the fill color.  Set it before drawing the figure.</p>
<P>
 <font size="+1" color="green"><B>Units</B></font></P>
<p>
 The numeric location parameters may be expressed in three types of units, which are chosen by
 command qualifier. The default is <CODE>/WORLD</code>.</p>
<p>
 <table border="1"><tr>
 <td><i>qualifier</i></td>
 <td><center><i>Interpretation of the coordinates</i></center></td>
 </tr><tr>
 <td><CODE>\WORLD</code></td>
 <td>centimeters</td>
 </tr><tr>
 <td><CODE>\PERCENT</code></td>
 <td>percentages of the current window, as chosen with the
 <CODE><a href="../WindowCommand/windowcommand.htm">WINDOW</a></code> command.</td>
 </tr><tr>
 <td><CODE>\GRAPH</code></td>
 <td>graph units, that is, the units defined by the minimum and maximum
 values for the last graph drawn in the active window. If no graph has been drawn yet, the defaults
 are <code>-1 &le; x &le; 1</code> and <code>-1 &le; y &le; 1</code></td>
 </tr></table></p>
<p>
 For example, if the <CODE>\PERCENT</code> qualifier is used, then a location of <code>(50,50)</code>
 represents the center of the active window. If the <CODE>\WORLD</code> qualifier is used, the
 coordinates are in units of the world coordinate system, the plotting units. The default world
 coordinate system units are centimeters.</p>
<P>
 <font size="+1" color="green"><B>Arrows</B></font></P>
<p>
 <TABLE border="1" cols="2" frame="box" rules="all" width="572">
 <TR>
 <TD width="15%" valign="top"><B>Syntax</B>:</TD>
 <TD width="85%" valign="top"><CODE>
 FIGURE ARROW style nheads x1 y1 x2 y2<code></td>
 </tr></table></p>
<p>
 The <CODE>FIGURE ARROW</code> command draws an arrow with base at <code>(x1,y1)</code> and end point
 at <code>(x2,y2)</code>.</p>
<p>
 There are three styles of arrow:</p>
 <center><img src="arrows.png"></center>
<p>
 The parameter <CODE>nheads</code> can be either <code>1</code>, for single headed arrows, or
 <code>2</code>, for arrows with heads on both ends.</p>
<P>
 <font size="+1" color="green"><B>Rectangles</B></font></P>
<p>
 <TABLE border="1" cols="2" frame="box" rules="all" width="572">
 <TR>
 <TD width="15%" valign="top"><B>Syntax</B>:</TD>
 <TD width="85%" valign="top"><CODE>
 FIGURE RECTANGLE x1 y1 x2 y2<code></td>
 </tr></table></p>
<p>
 The <CODE>FIGURE RECTANGLE</code> command draws a rectangle with one corner at <code>(x1,y1)</code>
 and the opposite corner at <code>(x2,y2)</code>.</p> 
<P>
 <font size="+1" color="green"><B>Triangles</B></font></P>
<p>
 <TABLE border="1" cols="2" frame="box" rules="all" width="572">
 <TR>
 <TD width="15%" valign="top"><B>Syntax</B>:</TD>
 <TD width="85%" valign="top"><CODE>
 FIGURE RECTANGLE x1 y1 x2 y2 x3 y3<code></td>
 </tr></table></p>
<p>
 The <CODE>FIGURE TRIANGLE</code> command draws a triangle with corners at <code>(x1,y1)</code>,
 <code>(x2,y2)</code>, and <code>(x3,y3)</code>.</p> 
<P>
 <font size="+1" color="green"><B>Rectangles</B></font></P>
<p>
 <TABLE border="1" cols="2" frame="box" rules="all" width="572">
 <TR>
 <TD width="15%" valign="top"><B>Syntax</B>:</TD>
 <TD width="85%" valign="top"><CODE>
 FIGURE ELLIPSE x1 y1 x2 y2<code></td>
 </tr></table></p>
<p>
 The <CODE>FIGURE ELLIPSE</code> command draws the ellipse which fits within the rectangle with
 one corner at <code>(x1,y1)</code> and the opposite corner at <code>(x2,y2)</code>.</p>
</BODY>
</HTML>