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 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
|
<html><h1>scatterplot4</h1><img src="scatterplot4.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>
<pre><b>Usage: pl -gif scatterplot4.htm
This example demonstrates how points out of plotting area are not shown.
<hr></b>
// <b> set up plotting region using <a href="../doc/areadef.html">proc areadef</a></b>
#proc areadef
rectangle: 1 1 3 3
xrange: 30 60
yrange: 30 60
frame: width=0.5 color=0.3
xaxis.stubs: inc 10
yaxis.stubs: inc 10
// <b> specify data using <a href="../doc/getdata.html">proc getdata</a></b>
#proc getdata
#intrailer
// <b> draw diagonal line using <a href="../doc/line.html">proc line</a></b>
#proc line
notation: scaled
linedetails: width=0.5 color=0.8
points: 30 30 60 60
// <b> draw pink points using <a href="../doc/scatterplot.html">proc scatterplot</a></b>
#proc scatterplot
xfield: 1
yfield: 2
symbol: shape=nicecircle linecolor=red radius=0.07
text: A
textdetails: color=red style=I size=6
legendlabel: Alpha type
// <b> draw green points using <a href="../doc/scatterplot.html">proc scatterplot</a></b>
#proc scatterplot
xfield: 2
yfield: 3
symbol: shape=nicecircle linecolor=green radius=0.07
text: B
textdetails: color=green style=I size=6
legendlabel: Beta type
#proc legend
location: min+0.3 max-0.1
#proc trailer
data: 5 8 12
10 9 15
56 51 22
56 51 30
17 22 33
28 27 35
56 51 40
56 51 42
56 51 44
32 22 46
42 45 48
43 39 50
56 51 20
56 51 22
54 72 24
55 55 28
56 37 32
56 51 34
56 51 44
56 52 50
57 54 52
60 65 57
56 51 40
56 51 42
56 51 46
|