File: graphcommand.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 (86 lines) | stat: -rw-r--r-- 3,880 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
<HTML>
<HEAD>
<TITLE>GRAPH command</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+3" color="green"><B>GRAPH 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>
GRAPH { 'legendtext' } x y { ye1 { xe1 { ye2 { xe2 }}}}<br />
GRAPH\POLAR r theta<br />
GRAPH\RADAR r theta</CODE>
</TD></TR>
<TR>
<TD valign="top"><B>Qualifiers:</B></TD>
<TD valign="top"><CODE>
 \AXESONLY, \OVERLAY, \POLAR, \RADAR, \REPLOT, \HISTOGRAM, \YONRIGHT, \XONTOP, \SMOOTH</CODE>
</TD></TR>
<TR>
<TD valign="top"><B>Defaults:</B></TD>
<TD valign="top">
 axes drawn, <CODE>\REPLOT, \-POLAR, \-RADAR, \-HISTOGRAM, \-YONRIGHT,
 \-XONTOP, \-SMOOTH,</CODE>&nbsp;&nbsp; legendtext ignored
</TD></TR>
<TR>
<TD valign="top"><B>Examples:</B></TD>
<TD valign="top"><CODE>
GRAPH X Y<BR />
GRAPH 'legend entry' X Y YERR XERR<BR />
GRAPH\OVERLAY X Y<br />
GRAPH\OVERLAY\SMOOTH X Y<br />
GRAPH\HISTOGRAM X Y<BR />
GRAPH\POLAR R THETA</CODE>
</TD></TR></TABLE>
<P>
 By default, the <code>GRAPH</code> command draws Cartesian axes.</p>
<p>
 If the <code>\POLAR</code> or the <code>\RADAR</code> qualifier is used, the data is assumed to be
 in polar coordinates, i.e., radius and angle (in degrees), and a polar plot will be drawn.</p>
<p>
 <table border="0" width="550">
 <TR>
 <TD><i>To draw:</i></TD><TD><I>use command:</i></td>
 </tr><tr>
 <TD colspan="2"><hr /></TD>
 </tr><tr>
 <td>data with axes</td><td><CODE>GRAPH</CODE></TD>
 </tr><tr>
 <td>just the data</td><td><CODE>GRAPH\OVERLAY</CODE></td>
 </tr><tr>
 <td>just the axes</td><td><CODE>GRAPH\AXESONLY</CODE></td>
 </tr><tr>
 <td><i>y</i>-axis on the right (Cartesian only)</td><td><CODE>GRAPH\YONRIGHT</CODE></td>
 </tr><tr>
 <td><i>x</i>-axis on the top (Cartesian only)</td><td><CODE>GRAPH\XONTOP</CODE></td>
 </tr><tr>
 <td>smooth curve through the data (Cartesian only)</td><td><CODE>GRAPH\SMOOTH</CODE></td>
 </tr><tr>
 <td>histograms (Cartesian only)</td><td><CODE>GRAPH\HISTOGRAM</CODE></td>
 </tr></table></P>
<P>
 The parameters can be vectors or scalars.  If input vectors have different lengths, a warning is
 issued and the minimum length of all of the input vectors will be used.</P>
<P>
 <a href="polarcoords.htm"><font size="+1" color="olive">Polar plot</font></a><br />
 <a href="plotsymbol.htm"><font size="+1" color="olive">Plotting symbols</font></a><br />
 <a href="graphlegend.htm"><font size="+1" color="olive">Graph legend</font></a><br />
 <a href="axisscaling.htm"><font size="+1" color="olive">Axis scaling</font></a><br />
 <a href="dataandaxes.htm"><font size="+1" color="olive">Plot data and axes</font></a><br />
 <a href="axesonly.htm"><font size="+1" color="olive">Plot axes only</font></a><br />
 <a href="dataonly.htm"><font size="+1" color="olive">Plot data only</font></a><br />
 <a href="smooth.htm"><font size="+1" color="olive">Plot a smooth curve through the data</font></a><br />
 <a href="yonright.htm"><font size="+1" color="olive">Draw the y-axis on the right</font></a><br />
 <a href="xontop.htm"><font size="+1" color="olive">Draw the x-axis on the top</font></a><br />
 <a href="replotdata.htm"><font size="+1" color="olive">Replot data on a common scale</font></a><br />
 <a href="histograms.htm"><font size="+1" color="olive">Histograms</font></a><br />
 <a href="errorbars.htm"><font size="+1" color="olive">Error bars</font></a><br />
 <a href="fillareacurve.htm"><font size="+1" color="olive">Fill the area under a curve</font></a><br />
 <a href="basicexample.htm"><font size="+1" color="olive">A basic example</font></a><br />
 <a href="scripttoplot.htm"><font size="+1" color="olive">A script to plot a curve with axes</font></a><br />
 <a href="getaxisnums.htm"><font size="+1" color="olive">Getting the axis numbers right</font></a></P>
</BODY>
</HTML>