source: trunk/Jgraph/ebars.jgr@ 674

Last change on this file since 674 was 418, checked in by Nicholas Riley, 17 years ago

Jgraph 8.3 from http://www.cs.utk.edu/~plank/plank/jgraph/jgraph.tar.gz

File size: 605 bytes
Line 
1(* This graph shows the use of y_epts to get error bars onto the graph.
2 It plots the curve y = 2x plus or minus x/2 for integer x values
3 from from 1 to 10 *)
4
5newgraph
6xaxis min 0 max 10 label : x
7yaxis min 0 max 25 label : y = 2x +- x/2
8
9newcurve marktype circle linetype dotted
10 (* These points could equally be generated by:
11 y_epts shell : echo "" |\
12 awk '{ for (i = 1; i < 11; i++) print i, 2*i, 2*i-i/2.0, 2*i+i/2.0}'
13 *)
14 y_epts
15 1 2 1.5 2.5
16 2 4 3 5
17 3 6 4.5 7.5
18 4 8 6 10
19 5 10 7.5 12.5
20 6 12 9 15
21 7 14 10.5 17.5
22 8 16 12 20
23 9 18 13.5 22.5
24 10 20 15 25
Note: See TracBrowser for help on using the repository browser.