File: scaleunits

package info (click to toggle)
ploticus-doc 2.33-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 9,392 kB
  • ctags: 169
  • sloc: pascal: 469; makefile: 63; sh: 11
file content (307 lines) | stat: -rw-r--r-- 7,550 bytes parent folder | download
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
.ig >>
<STYLE TYPE="text/css">
<!--
        A:link{text-decoration:none}
        A:visited{text-decoration:none}
        A:active{text-decoration:none}
        OL,UL,P,BODY,TD,TR,TH,FORM { font-family: arial,helvetica,sans-serif;; font-size:small; color: #333333; }

        H1 { font-size: x-large; font-family: arial,helvetica,sans-serif; }
        H2 { font-size: large; font-family: arial,helvetica,sans-serif; }
        H3 { font-size: medium; font-family: arial,helvetica,sans-serif; }
        H4 { font-size: small; font-family: arial,helvetica,sans-serif; }
-->
</STYLE>
<title>ploticus: scale units</title>
<body bgcolor=D0D0EE vlink=0000FF>
<br>
<br>
<center>
<table cellpadding=2 bgcolor=FFFFFF width=550><tr>
<td>
  <table cellpadding=2 width=550><tr>
  <td><br><h2>scale units</h2></td>
  <td align=right>
  <small>
  <a href="../doc/welcome.html"><img src="../doc/ploticus.gif" border=0></a><br>
  Version 2.33 Jun'06
  <td></tr></table>
</td></tr>
<td>
<br>
<br>
.>>

.TH scale_units PL "02-JUN-2006   PL ploticus.sourceforge.net"


.SH Linear
.ig >>
<a href="../gallery/axis1.htm"><img src="../gallery/axis1.gif" border=0></a>
.>>
.LP
Standard linear numeric scale.
Numeric values may be any mixture of integer or floating point
(exponential/scientific notation e.g. 4.336e11 and 4.336e-27 is supported).
Linear scaling is used for plotting continuous numeric data;
it may also be used with undefined series, such as lineplots
when no X value is present in the data.
Display of numerics is often controlled using a 
.ig >>
<a href="attributetypes.html#printfspec">
.>>
\0printf-spec
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>

.SH Log
.ig >>
<a href="../gallery/sa18.htm"><img src="../gallery/sa18.gif" border=0></a>
.>>
.LP
Logarithmic numeric scale.
Numeric values may be any mixture of integer or floating point
(exponential/scientific notation is supported for large magnitude numbers).
Also available is \fBlog+1\fR scaling, which is similar to \fBlog\fR
but uses \fClog( value+1 )\fR.  This is useful for log-characteristic data 
that can include values at or near 0.0.
If using log scaling along with autorange, and if values
of 0.0 are found, log+1 scaling will automatically be used.
Note: the proc axis \fCstubcull\fR attribute may be useful in 
eliminating colliding stubs when rendering log axes.


.ig >>
<br><br><br>
.>>

.ig >>
<a name=categories></a>
.>>

.SH Categories
.ig >>
<a href="../gallery/sa15.htm"><img src="../gallery/sa15.gif" border=0></a>
.>>
.LP
Positioning using categorical bins rather than a continuous scale.
The categories themselves are alphanumeric labels.
This scaletype is often useful in positioning bars, rangebars, etc.
Category names generally are short (less than 40 chars long); they
may contain embedded whitespace but this may be problematic if a
category name will be used as a
.ig >>
<a href="attributetypes.html#locvalue">
.>>
\0plotvalue or locvalue.
.ig >>
</a>
.>>
In scripts, categories may be defined using
.ig >>
<a href="categories.html">
.>>
\0proc categories
.ig >>
</a>
.>>
before invoking proc areadef, or from within
.ig >>
<a href="areadef.html">
.>>
\0proc areadef.
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>

.SH Date
.ig >>
<a href="../gallery/sa5.htm"><img src="../gallery/sa5.gif" border=0></a>
<br>
<br>
<a href="../gallery/sa4.htm"><img src="../gallery/sa4.gif" border=0></a>
<br>
<br>
<a href="../gallery/sa8.htm"><img src="../gallery/sa8.gif" border=0></a>
.>>

.LP
Allows date information to be plotted directly.  A number of
.ig >>
<a href="dates.html">
.>>
\0date notations
.ig >>
</a>
.>>
(including year/month and quarter year notations)
are supported for plotting and date arithmetic.
It is possible to omit weekends if desired - see \fComitweekends\fR
and
.ig >>
<a href="settings.html">
.>>
\0proc settings.
.ig >>
</a>
.>>
.LP
Dates may be displayed in
any of the supported date arithmetic formats,
or in a number of additional 
.ig >>
<a href="dates.html#display">
.>>
\0display formats
.ig >>
</a>
.>>
.LP
The basic date unit is always a \fBday\fR, regardless
of which notation is in use.  Stub and tic increments
may be expressed in \fCmonths\fR or \fCyears\fR, if desired.


.ig >>
<br><br><br>
.>>

.SH Time
.ig >>
<a href="../gallery/sa10.htm"><img src="../gallery/sa10.gif" border=0></a>
.>>
.LP
Allows date information to be plotted directly.  Several 
.ig >>
<a href="times.html">
.>>
\0time notations
.ig >>
</a>
.>>
are supported for plotting and time arithmetic.
Times may be displayed in any of the supported time arithmetic formats.
The basic time unit is a \fBminute\fR.

.ig >>
<br><br><br>
.>>
.ig >>
<a name=datetime></a>
.>>

.SH Datetime
.ig >>
<a href="../gallery/sa17a.htm"><img src="../gallery/sa17a.gif" border=0></a>
.>>
.LP
Allows time information to be plotted across multiple days.
Datetime data items contain a date and a time connected by a certain character,
by default a dot (\fC.\fR).  The connecting character can be set via
.ig >>
<a href="settings.html">
.>>
\0proc settings
.ig >>
</a>
.>>
or your
.ig >>
<a href="config.html">
.>>
\0config file;
.ig >>
</a>
.>>
note that ISO8601 uses a \fCT\fR as the connecting character. 
If your data has the date and time in two separate fields,
script writers can use the proc getdata \fCfilter\fR attribute to concatenate them 
(with a connecting character) into one field.
.LP
The date and (clock) time formats may be any of those supported for
plotting and arithmetic.  
For example, if your datetime fields are like this:
\fC22Aug1999.16:44\fR you would specify the datetime
format as \fCddMmmyyyy.hh:mm\fR.
.LP
Display format is the same as above, except that the date
component or the time component may be omitted if desired.
.LP
The basic datetime unit is a \fBday\fR.
.LP
A script example of datetime scaling is in 
.ig >>
<a href="../gallery/hitcount.htm">
.>>
\0hitcount
.ig >>
</a>
.>>

.ig >>
<br><br><br>
.>>

.SH Datetime with time windowing
.ig >>
<a href="../gallery/sa17.htm"><img src="../gallery/sa17.gif" border=0></a>
.>>
.LP
Sometimes it is desirable to show only portions of each day, when showing
the entire 24 hour day would be too much. Examples of this include a work
day or a trading day. \fBdatetime\fR scaling allows you to do this- you can
indicate the time range for each day at the end of the datetime keyword.
For example:
.IP \0
\fCdatetime9-17\fR 
.br
would show only the hours from 9:00 to 17:00 for each day.  
.LP
\fBRules:\fR Only whole hours may be used in the time window definition.
Time values that are outside the
defined time window will be displayed at the time window boundary and a warning will be 
issued.  The areadef range must contain time components that are within the
time window range.  Incremental axis labels in day, hour, or minutes units may be used.
The end of one day and the beginning of the next day happen at the same point, and
the next day stub takes presidence.
.LP
A script example of datetime scaling with time window is in
.ig >>
<a href="../gallery/hitcount3.htm">
.>>
\0hitcount3
.ig >>
</a>
.>>


.ig >>
<br>
<br>
</td></tr>
<td align=right>
<a href="../doc/welcome.html">
<img src="../doc/ploticus.gif" border=0></a><br><small>data display engine &nbsp; <br>
<a href="../doc/Copyright.html">Copyright Steve Grubb</a>
<br>
<br>
<center>
<img src="../gallery/all.gif"> 
</center>
</td></tr>
</table>
<br>
<center>
Ploticus is hosted at http://ploticus.sourceforge.net <br>
<img src="http://sourceforge.net/sflogo.php?group_id=38453" width="88" height="31" border="0" alt="SourceForge Logo">
</center>
.>>