File: curvefit2.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 (42 lines) | stat: -rw-r--r-- 697 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
36
37
38
39
40
41
42
<html><h2>curvefit2</h1><img src="curvefit2.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: pl -gif curvefit2.htm
<hr></b>
Demonstrates proc curvefit generating an interpolated curve.


#proc getdata
  data:
  0.0 0.0
  1.0 1.0
  2.0 4.0
  1.0 2.0
  0.0 1.0
  1.0 0.0
  2.0 1.0
  1.0 2.0
  2.0 2.0
  3.0 0.0

#proc areadef
  rectangle: 1 1 4 4 
  xrange: -2 5
  yrange: -2 5
  frame: yes
  xaxis.stubs: inc
  yaxis.stubs: inc

#proc lineplot
  xfield: 1
  yfield: 2
  linedetails: color=gray(0.8) width=0.5


#proc curvefit
  curvetype: interpolated
  xfield: 1
  yfield: 2
  linedetails: color=red width=0.5
//  statsonly: yes
//  showresults: yes