File: legends232.htm

package info (click to toggle)
ploticus 2.42-9
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,228 kB
  • sloc: ansic: 46,243; perl: 1,590; sh: 392; makefile: 123
file content (68 lines) | stat: -rw-r--r-- 1,437 bytes parent folder | download | duplicates (12)
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
<html><h3>legends232</h3><img src="legends232.gif"><p><pre>

//<b> Usage: pl -gif legends232.htm </b>
//
// Demonstrate some new legend features available with ploticus 2.32


// set up some legend entries...
#proc legendentry
  sampletype: color
  label: this is a test
  details: red

#proc legendentry
  sampletype: color
  label: this is another test
  details: blue

#proc legendentry
  sampletype: color
  label: this is \n another test
  details: green

#proc legendentry
  sampletype: color
  label: this is another test
  details: orange

#proc legendentry
  sampletype: color
  label: this is another test
  details: lavender

#proc legendentry
  sampletype: color
  label: this is another test
  details: dullyellow


// render the bottom legend using the above entries..
#proc legend
  #saveas L
  textdetails: size=6
  location: 1.4 6.5
  format: down
  extent: 1.4
  separation: 0.1
  wraplen: 15
  frame: bevel
  title: Multi-column legends now supported
  noclear: yes  // this just allows us to show the same set of entries again..

// render the middle legend using the above entries..
#proc legend
  #clone L
  location 1.4 4.3
  frame: no
  backcolor: dullyellow
  title: You can add legend title \n and do wordwrap on legend entries

// render the top legend using the above entries..
#proc legend
  #clone L
  format: across
  extent: 4.0
  location 1 2.3
  frame: yes
  title: This legend uses the 'across' format