File: curvefit1.htm

package info (click to toggle)
ploticus-doc 2.40-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,604 kB
  • ctags: 159
  • sloc: pascal: 469; makefile: 63; sh: 11
file content (35 lines) | stat: -rw-r--r-- 720 bytes parent folder | download | duplicates (3)
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
<html><h1>curvefit1</h1><img src="curvefit1.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: pl -gif curvefit1.htm
Uses the data file <a href="curve2.dat">curve2.dat</a>
<hr></b>

//<b> Read data from <a href="curve2.dat">curve2.dat</a></b>
#proc getdata
file: curve2.dat

#proc areadef
rectangle: 1 1 5 2
xrange: 330 350
yrange: 70 120

// <b> Do the green grid lines.. </b>
#proc yaxis
ticincrement: 10
grid: color=green
stubs: none
tics: none

// <b> Do the red line.. </b>
#proc lineplot
xfield: 1
yfield: 2
linedetails: color=red

// <b> Compute a moving average curve and display it in blue.. </b>
#proc curvefit
xfield: 1
yfield: 2
order: 20
linedetails: color=blue