File: ReplotS05.htm

package info (click to toggle)
extrema 4.4.4.dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 19,416 kB
  • ctags: 6,689
  • sloc: cpp: 88,991; sh: 8,229; makefile: 480
file content (30 lines) | stat: -rw-r--r-- 1,237 bytes parent folder | download | duplicates (2)
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
<HTML>
<HEAD>
<TITLE>Example 1</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+2" color="green">Example 1</font></P>
<P>
 The following sequence of commands draws a graph of <code>20*X</code> versus 
 <code>10*X</code> and overlays a graph of <code>(X^3)/10</code> versus
 <code>X^2</code> on the same set of axes. To see the complete drawing, the
 <CODE><font color="blue">REPLOT</font></CODE> command is used.</P>
<p>
 <font color="blue"><PRE>
 X=[1:20]                   ! create some data
 WINDOW 5                   ! choose graphics window
 SET PCHAR -1               ! set plotting symbol
 GRAPH 20*X 10*X            ! plot 10*X vs 20*X with axes
 SET PCHAR -2               ! choose different plotting symbol
 GRAPH\OVERLAY X^2 (X^3)/10 ! overlay (X^3)/10 vs X^2 on same axes
 CLEAR\-REPLOT              ! clear graphics but not replot buffers
 REPLOT                     ! replot all data on common scale
 </PRE></font></p>
<P>
  <a href="ReplotS04.htm"><img src="../shadow_left.gif">&nbsp;
    <font size="+1" color="olive">Clearing the graphics</font></a><br />
  <a href="ReplotS06.htm"><img src="../shadow_right.gif">&nbsp;
    <font size="+1" color="olive">Example 2</font></a></P>
</BODY>
</HTML>