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