Debian Codegraph @

pltestsuite/legends232.htm

raw symbols SCIP
1 <html><h3>legends232</h3><img src="legends232.gif"><p><pre>
2
3 //<b> Usage: pl -gif legends232.htm </b>
4 //
5 // Demonstrate some new legend features available with ploticus 2.32
6
7
8 // set up some legend entries...
9 #proc legendentry
10 sampletype: color
11 label: this is a test
12 details: red
13
14 #proc legendentry
15 sampletype: color
16 label: this is another test
17 details: blue
18
19 #proc legendentry
20 sampletype: color
21 label: this is \n another test
22 details: green
23
24 #proc legendentry
25 sampletype: color
26 label: this is another test
27 details: orange
28
29 #proc legendentry
30 sampletype: color
31 label: this is another test
32 details: lavender
33
34 #proc legendentry
35 sampletype: color
36 label: this is another test
37 details: dullyellow
38
39
40 // render the bottom legend using the above entries..
41 #proc legend
42 #saveas L
43 textdetails: size=6
44 location: 1.4 6.5
45 format: down
46 extent: 1.4
47 separation: 0.1
48 wraplen: 15
49 frame: bevel
50 title: Multi-column legends now supported
51 noclear: yes // this just allows us to show the same set of entries again..
52
53 // render the middle legend using the above entries..
54 #proc legend
55 #clone L
56 location 1.4 4.3
57 frame: no
58 backcolor: dullyellow
59 title: You can add legend title \n and do wordwrap on legend entries
60
61 // render the top legend using the above entries..
62 #proc legend
63 #clone L
64 format: across
65 extent: 4.0
66 location 1 2.3
67 frame: yes
68 title: This legend uses the 'across' format