Line | |
---|
1 |
|
---|
2 | (* Example of Unix spline(1) to smooth a curve.
|
---|
3 | This is a file to draw sin(i) for i going from -pi to pi *)
|
---|
4 |
|
---|
5 | newgraph
|
---|
6 |
|
---|
7 | yaxis min -1 max 1 label : sin(i)
|
---|
8 | xaxis label : i
|
---|
9 | grid_lines
|
---|
10 | border
|
---|
11 | title : Example Unix spline(1) to interpolate points
|
---|
12 |
|
---|
13 | (* Plot the sin curve *)
|
---|
14 | newline
|
---|
15 | label : data
|
---|
16 | pts include bailey.pts
|
---|
17 | copycurve
|
---|
18 | label : splined
|
---|
19 | linetype dotted
|
---|
20 | pts shell : spline < bailey.pts
|
---|
21 |
|
---|
22 | (*
|
---|
23 | bailey.pts file:
|
---|
24 | -3.1416 0.0
|
---|
25 | -1.81 -0.9715
|
---|
26 | -0.55 -0.5226
|
---|
27 | 0.71 0.6518
|
---|
28 | 1.97 0.9213
|
---|
29 | 3.1416 0.0
|
---|
30 | *)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.