~ubuntu-branches/ubuntu/maverick/ploticus/maverick

« back to all changes in this revision

Viewing changes to doc/legend.html

  • Committer: Bazaar Package Importer
  • Author(s): James W. Penny
  • Date: 2002-04-10 23:02:04 UTC
  • Revision ID: james.westby@ubuntu.com-20020410230204-64em4ns2f57c5u3l
Tags: 2.0.3-1
* The "That Tears it, Now You Have to Update Docs Package" Release.
* New upstream release (well, not so new :-( )   closes: Bug#137578
* Correct missing libpng2-dev in build-depends.  closes: Bug#142205
* Use correct syntax to:
* close URL type.                                closes: Bug#137577
* fix Architecture                               closes: Bug#141657
* close ITP                                      closes: Bug#132878

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<!-- This file has been generated by unroff 1.0, 03/01/02 09:13:43. -->
 
4
<!-- Do not edit! -->
 
5
<STYLE TYPE="text/css">
 
6
<!--
 
7
        A:link{text-decoration:none}
 
8
        A:visited{text-decoration:none}
 
9
        A:active{text-decoration:none}
 
10
-->
 
11
</STYLE>
 
12
<title>ploticus: proc legend</title>
 
13
<body bgcolor=D0D0EE vlink=0000FF>
 
14
<br>
 
15
<br>
 
16
<center>
 
17
<table cellpadding=2 bgcolor=FFFFFF width=550 ><tr>
 
18
<td>
 
19
  <table cellpadding=2 width=550><tr>
 
20
  <td><br><h2>proc legend</h2></td>
 
21
  <td align=right>
 
22
  <small>
 
23
  <a href="../doc/Welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
 
24
  <a href="../doc/Welcome.html">Welcome</a> &nbsp; &nbsp;
 
25
  <a href="../gallery/index.html">Gallery</a> &nbsp; &nbsp;
 
26
  <a href="../doc/Contents.html">Handbook</a> 
 
27
  <td></tr></table>
 
28
</td></tr>
 
29
<td>
 
30
<br>
 
31
<br>
 
32
 
 
33
<title>Manual page for proc_legend(PL)</title>
 
34
</head>
 
35
<body>
 
36
 
 
37
<center>
 
38
<img src="../gallery/legend0.gif">
 
39
</center>
 
40
 
 
41
<h2>DESCRIPTION</h2>
 
42
Renders a legend.<tt> </tt>
 
43
<b>proc legend</b> uses entries that you must have already supplied in 
 
44
previous plotting procs (usually in an attribute called <tt>legendlabel</tt>).<tt> </tt>
 
45
You can also explicitly define legend entries using 
 
46
<a href="legendentry.html">
 
47
 proc legendentry
 
48
</a>
 
49
one or more times.  If this is not clear, check the example.<tt> </tt>
 
50
<p>
 
51
For bars, each legend entry is shown with a small square sample of color.<tt> </tt>
 
52
For lineplot and curvefit, a small segment of the line is shown.<tt> </tt>
 
53
For scatterplot, a symbol is shown.<tt> </tt>
 
54
By default, legend entries are presented in the order that the plotting procs (or 
 
55
<a href="legendentry.html">
 
56
 proc legendentry
 
57
</a>
 
58
invocations) were executed.<tt> </tt>
 
59
The order can be reversed (<tt>reverseorder</tt>) or controlled explicitly
 
60
(<tt>specifyorder</tt>) if desired.<tt> </tt>
 
61
<p>
 
62
Legend entries may be displayed one per line, or all on the same line (<tt>format</tt>).<tt> </tt>
 
63
<p>
 
64
If a
 
65
<a href="clickmap.html">
 
66
 HTML clickmap
 
67
</a>
 
68
is being generated, legend entries may be mapped to URLs.  See
 
69
<a href="clickmap.html">
 
70
 clickmaps page
 
71
</a>
 
72
for details.<tt> </tt>
 
73
<p>
 
74
After the legend is rendered, the internal list of legend entries is normally
 
75
cleared (this can be suppressed using the <tt>noclear</tt> attribute).<tt> </tt>
 
76
It is also possible to clear the internal list without rendering any
 
77
legend using the <tt>reset</tt> attribute.<tt> </tt>
 
78
 
 
79
 
 
80
<h2>EXAMPLES</h2>
 
81
See the Gallery Legends examples
 
82
<a href="../gallery/gall.legend.html"><img src="../gallery/btn/here.gif"></a>
 
83
 
 
84
<h2>PREREQUISITES</h2>
 
85
Plotting proc(s) containing a <tt>legendlabel</tt> specification,
 
86
and/or <b>proc legendentry</b> must have already been executed.<tt> </tt>
 
87
 
 
88
 
 
89
<h2>MANDATORY ATTRIBUTES</h2>
 
90
None.  
 
91
 
 
92
 
 
93
<h2>ATTRIBUTES</h2>
 
94
 
 
95
<p>
 
96
<b>format</b> <tt>multiline</tt> | <tt>singleline</tt>
 
97
<dl>
 
98
<dt><dd><p>
 
99
Controls the overall format of the legend.<tt> </tt>
 
100
<tt>multiline</tt> gives entries that are placed downward on multiple lines.<tt> </tt>
 
101
<tt>singleline</tt> gives entries that are placed across all on the same line.<tt> </tt>
 
102
<br>
 
103
Example: <tt>format: singleline</tt>
 
104
 
 
105
</dl>
 
106
<p>
 
107
<b>location</b>  
 
108
<a href="attributetypes.html#xy">
 
109
<i> x y </i>
 
110
</a>
 
111
<dl>
 
112
<dt><dd><p>
 
113
Location for the legend.  
 
114
<i>x</i> will correspond to the beginning of the label (line segments,
 
115
color squares, etc. will appear to the left of this).<tt> </tt>
 
116
<i>y</i> will correspond to the top of the legend.<tt> </tt>
 
117
<br>
 
118
Example: <tt>location: min+1.0 max</tt>
 
119
 
 
120
</dl>
 
121
<p>
 
122
<b>textdetails</b> 
 
123
<a href="textdetails.html">
 
124
<i> textdetails </i>
 
125
</a>
 
126
<dl>
 
127
<dt><dd><p>
 
128
Details regarding the rendering of the legend text entries.<tt> </tt>
 
129
 
 
130
</dl>
 
131
<p>
 
132
<b>sep</b> <i>n</i>
 
133
<dl>
 
134
<dt><dd><p>
 
135
Amount of separation between entries.  
 
136
<a href="attributetypes.html#positionunits">
 
137
Absolute units.<tt> </tt>
 
138
</a>
 
139
 
 
140
</dl>
 
141
<p>
 
142
<b>seglen</b> <i>n</i>
 
143
<dl>
 
144
<dt><dd><p>
 
145
If specified, controls the length of line segments.<tt> </tt>
 
146
<a href="attributetypes.html#positionunits">
 
147
Absolute units.<tt> </tt>
 
148
</a>
 
149
 
 
150
</dl>
 
151
<p>
 
152
<b>swatchsize</b> <i>n</i>
 
153
<dl>
 
154
<dt><dd><p>
 
155
If specified, controls the size of color sample square.<tt> </tt>
 
156
<i>n</i> is the length of one side in 
 
157
<a href="attributetypes.html#positionunits">
 
158
absolute units.<tt> </tt>
 
159
</a>
 
160
 
 
161
</dl>
 
162
<p>
 
163
<b>outlinecolors</b> <tt>yes</tt> | <tt>no</tt>
 
164
<dl>
 
165
<dt><dd><p>
 
166
If <tt>yes</tt>, color samples will be outlined.<tt> </tt>
 
167
Normally they are not, except for white.<tt> </tt>
 
168
 
 
169
</dl>
 
170
<p>
 
171
<b>specifyorder</b> 
 
172
<a href="attributetypes.html#text">
 
173
<i> multiline-text </i>
 
174
</a>
 
175
<dl>
 
176
<dt><dd><p>
 
177
If specified, allows the order of legend entries to be controlled
 
178
explicitly.  Also allows entries to selected/omitted.<tt> </tt>
 
179
(Normally, entries are rendered in the order that they were added
 
180
and all entries are rendered.)
 
181
<i>multilinetext</i> should have one line for each entry to appear in the legend.<tt> </tt>
 
182
Each line will be compared against all defined legend labels.  
 
183
Upon a match, that entry will be rendered.<tt> </tt>
 
184
The comparison is case-insensitive.<tt> </tt>
 
185
Only the first few characters (enough to uniquely match) need be given 
 
186
in the <tt>specifyorder</tt> attribute.<tt> </tt>
 
187
<br>
 
188
Example:
 
189
<br>
 
190
<pre>
 
191
specifyorder: 
 
192
   Jean
 
193
   Jan
 
194
   Joan
 
195
   John
 
196
   Juan
 
197
</pre>
 
198
<tt></tt>Other Gallery examples:
 
199
<a href="../gallery/timeline2.htm">
 
200
 timeline2 
 
201
</a>
 
202
and
 
203
<a href="../gallery/km2.htm">
 
204
 km2 
 
205
</a>
 
206
 
 
207
</dl>
 
208
<p>
 
209
<b>reverseorder</b> <tt>yes</tt> | <tt>no</tt>
 
210
<dl>
 
211
<dt><dd><p>
 
212
If <tt>yes</tt>, entries are rendered from last to first.<tt> </tt>
 
213
 
 
214
</dl>
 
215
<p>
 
216
<b>colortext</b> <tt>yes</tt> | <tt>no</tt>
 
217
<dl>
 
218
<dt><dd><p>
 
219
If <tt>yes</tt>, entry text inherits the color of the
 
220
sample.  Normally it does not.<tt> </tt>
 
221
<a href="../gallery/colorfld.htm">
 
222
 Example.<tt> </tt>
 
223
</a>
 
224
 
 
225
</dl>
 
226
<p>
 
227
<b>noclear</b>  <tt>yes</tt> | <tt>no</tt>
 
228
<dl>
 
229
<dt><dd><p>
 
230
If <tt>yes</tt>, the defined legend entries list is not cleared.<tt> </tt>
 
231
Normally they are cleared out after the legend has been rendered.<tt> </tt>
 
232
This is useful in rendering multi-column legends.<tt> </tt>
 
233
<br>
 
234
Example: this is used in Gallery example
 
235
<a href="../gallery/propbars1.htm">
 
236
 propbars1 
 
237
</a>
 
238
 
 
239
</dl>
 
240
<p>
 
241
<b>reset</b>  
 
242
<dl>
 
243
<dt><dd><p>
 
244
If specified, no legend will be rendered and the internal list
 
245
of legend entries will be cleared.  This might be useful in situations
 
246
where a number of cloned plots (and cloned legendentries) are being
 
247
done, but only one actual legend is desired.  
 
248
 
 
249
<br>
 
250
<br>
 
251
</td></tr>
 
252
<td align=right>
 
253
<a href="../doc/Welcome.html">
 
254
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
 
255
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
 
256
<br>
 
257
<br>
 
258
<center>
 
259
<img src="../gallery/all.gif">
 
260
</center>
 
261
</td></tr>
 
262
</table>
 
263
</dl>
 
264
<p><hr>
 
265
Markup created by <em>unroff</em> 1.0,&#160;<tt> </tt>&#160;<tt> </tt>March 01, 2002.
 
266
</body>
 
267
</html>