File: bailey.jgr

package info (click to toggle)
jgraph 83-19
  • links: PTS
  • area: main
  • in suites: woody
  • size: 624 kB
  • ctags: 445
  • sloc: ansic: 4,728; makefile: 186; sh: 106; awk: 104
file content (30 lines) | stat: -rw-r--r-- 500 bytes parent folder | download | duplicates (6)
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

(* Example of Unix spline(1) to smooth a curve.
This is a file to draw sin(i) for i going from -pi to pi *)

newgraph

yaxis min -1 max 1 label : sin(i)
xaxis label : i
grid_lines
border
title : Example Unix spline(1) to interpolate points

(* Plot the sin curve *)
newline
  label : data
  pts include bailey.pts
copycurve
  label : splined
  linetype dotted
  pts shell : spline < bailey.pts

(* 
bailey.pts file:
-3.1416 0.0
-1.81 -0.9715
-0.55 -0.5226
 0.71  0.6518
 1.97  0.9213
 3.1416 0.0
*)