File: dupsleg.htm

package info (click to toggle)
ploticus-doc 2.0.4-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 8,284 kB
  • ctags: 83
  • sloc: pascal: 149; makefile: 61; sh: 30
file content (57 lines) | stat: -rw-r--r-- 1,018 bytes parent folder | download | duplicates (3)
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
<html><h1>dupsleg</h1><img src="dupsleg.gif"><p>
<a href="gall.using.html">How to download and try this example</a><br>

<pre><b>Usage: ploticus -png dupsleg.htm
Demonstrates a scatterplot where degree of duplicity is 
expressed by symbol color.
<hr></b>


// set up legend explicitly (3 entries)..
#proc legendentry
sampletype: symbol
tag: 4
details: shape=circle style=filled fillcolor=red radius=0.04
label: 4 or more

#proc legendentry
sampletype: symbol
tag: 2 
details: shape=circle style=filled fillcolor=green radius=0.04
label: 2 - 3

#proc legendentry
sampletype: symbol
tag: 1
details: shape=circle style=filled fillcolor=blue radius=0.04
label: 1

// get the data..
#proc getdata
data:	3 7	A
	4 6	B
	4 6	B
	2 8	A
	2 8	A
	2 8	B
	2 8	B
	2 8	B
	1 6	A

// define the plotting area..
#proc areadef
rectangle: 1 1 4 4
xrange: 0 10
yrange: 0 10
frame: color=gray(0.8)

// render the scatterplot..
#proc scatterplot
xfield: 1
yfield: 2
dupsleg: yes

// display the legend..
#proc legend
location: min+0.3 min-0.3