Debian Codegraph @

pltestsuite/scatterplot10.htm

raw symbols SCIP
1 <html><h1>scatterplot10</h1><img src="scatterplot10.gif"><p>
2 <a href="gall.using.html">How to download and try this example</a><br>
3
4 <pre><b>Usage: pl -gif scatterplot10.htm</b>
5
6 Uses data file <a href="scatterplot10.dat">scatterplot10.dat</a>.
7 <hr>
8 <pre>
9
10
11 // read in data
12 #proc getdata
13 file: scatterplot10.dat
14 fieldnames: strain xval xse xsd extra yval yse ysd
15
16 // set up plot area
17 #proc areadef
18 rectangle: 1 1 4 4
19 xautorange: datafield=xval
20 yautorange: datafield=yval
21 xaxis.stubs: inc
22 yaxis.stubs: inc
23 xaxis.stubdetails: size=6
24 yaxis.stubdetails: size=6
25
26 // do regression curve..
27 #proc curvefit
28 curvetype: regression
29 xfield: xval
30 yfield: yval
31 linedetails: color=red width=0.5
32
33 // do annotation in lower right corner..
34 #proc annotate
35 location: max min-0.4
36 textdetails: color=red align=R size=6
37 text: @REGRESSION_LINE
38 r = @CORRELATION
39
40 // do vertical error bars..
41 #proc bars
42 locfield: xval
43 lenfield: yval
44 errbarfield: yse
45 //errbarmult: 2
46 thinbarline: color=orange width=0.5
47 tails: 0.02
48 truncate: yes
49
50 // do horizontal error bars..
51 #proc bars
52 locfield: yval
53 lenfield: xval
54 horizontalbars: yes
55 errbarfield: xse
56 //errbarmult: 2
57 thinbarline: color=orange width=0.5
58 tails: 0.02
59 truncate: yes
60
61 // do point labels..
62 //#proc scatterplot
63 //xfield: xval
64 //yfield: yval
65 //labelfield: strain
66 //textdetails: size=6 color=teal adjust=0,0.07
67
68 // do points..
69 #proc scatterplot
70 xfield: xval
71 yfield: yval
72 symbol: shape=circle style=filled radius=0.02 fillcolor=blue
73
74