~ubuntu-branches/ubuntu/maverick/rrdtool/maverick

« back to all changes in this revision

Viewing changes to doc/rrdgraph_graph.1

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Harl
  • Date: 2008-09-26 01:41:05 UTC
  • mfrom: (1.2.6 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080926014105-plk6tlc38amakhlo
Tags: 1.3.1-4
* Urgency set to high because of the fix for #499350.
* debian/patches:
  - Added upstream patch bts499350-data-corruption (upstream SVN r1480) to
    fix data corruption when updating multiple values in one go
    (Closes: #499350).
    (upstream bug #178 - http://oss.oetiker.ch/rrdtool-trac/ticket/178)
  - Added bts498183-segfault-madvise to fix a segfault on sparc caused by a
    wrong argument passed to madvise(2) - thanks to Jurij Smakov for
    valuable debugging information (Closes: #498183).
  - Added upstream patch bts496847-error-handling (upstream SVN r1471) to
    fix error handling of syscalls in rrdtool(1) (Closes: #496847).
  - Added upstream patch bts499349-memleaks (upstream SVN r1465, r1467,
    r1468, r1469, r1470, r1473) to fix a couple of memory leaks in rrdtool,
    librrd and the Perl and Ruby bindings (Closes: #499349).
  - Added trivial upstream patch typo-ruby (upstream SVN r1462) to fix a
    typo in the Ruby bindings.
* debian/NEWS:
  - Added. Documented the changes required by the switch to libpango
    (Closes: #493575, #493594).

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
.\" ========================================================================
130
130
.\"
131
131
.IX Title "RRDGRAPH_GRAPH 1"
132
 
.TH RRDGRAPH_GRAPH 1 "2008-02-17" "1.2.27" "rrdtool"
 
132
.TH RRDGRAPH_GRAPH 1 "2008-06-12" "1.3.1" "rrdtool"
133
133
.SH "NAME"
134
134
rrdgraph_graph \- rrdtool graph command reference
135
135
.SH "SYNOPSIS"
140
140
.PP
141
141
\&\fB\s-1COMMENT\s0\fR\fB:\fR\fItext\fR
142
142
.PP
143
 
\&\fB\s-1VRULE\s0\fR\fB:\fR\fItime\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR]
144
 
.PP
145
 
\&\fB\s-1HRULE\s0\fR\fB:\fR\fIvalue\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR]
146
 
.PP
147
 
\&\fB\s-1LINE\s0\fR[\fIwidth\fR]\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]]
 
143
\&\fB\s-1VRULE\s0\fR\fB:\fR\fItime\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
 
144
.PP
 
145
\&\fB\s-1HRULE\s0\fR\fB:\fR\fIvalue\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
 
146
.PP
 
147
\&\fB\s-1LINE\s0\fR[\fIwidth\fR]\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]][\fB:dashes\fR[\fB=\fR\fIon_s\fR[,\fIoff_s\fR[,\fIon_s\fR,\fIoff_s\fR]...]][\fB:dash\-offset=\fR\fIoffset\fR]]
148
148
.PP
149
149
\&\fB\s-1AREA\s0\fR\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]]
150
150
.PP
152
152
.PP
153
153
\&\fB\s-1SHIFT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIoffset\fR
154
154
.PP
 
155
\&\fB\s-1TEXTALIGN\s0\fR\fB:\fR{\fBleft\fR|\fBright\fR|\fBjustified\fR|\fBcenter\fR}
 
156
.PP
155
157
\&\fB\s-1PRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated)
156
158
.PP
157
159
\&\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR (deprecated)
164
166
Similarly, no report is generated if you don't use print options.
165
167
.Sh "\s-1PRINT\s0"
166
168
.IX Subsection "PRINT"
167
 
.IP "\fB\s-1PRINT:\s0\fR\fIvname\fR\fB:\fR\fIformat\fR[\fB:strftime\fR]" 4
168
 
.IX Item "PRINT:vname:format[:strftime]"
 
169
\fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fIformat\fI[\f(BI:strftime\fI]\fR
 
170
.IX Subsection "PRINT:vname:format[:strftime]"
 
171
.PP
169
172
Depending on the context, either the value component or the time
170
173
component of a \fB\s-1VDEF\s0\fR is printed using \fIformat\fR. It is an error
171
174
to specify a \fIvname\fR generated by a \fB\s-1DEF\s0\fR or \fB\s-1CDEF\s0\fR.
172
 
.Sp
 
175
.PP
173
176
Any text in \fIformat\fR is printed literally with one exception:
174
177
The percent character introduces a formatter string. This string
175
178
can be:
176
 
.Sp
 
179
.PP
177
180
For printing values:
178
 
.Sp
179
 
\&\fB%%\fR \- just prints a literal '%' character
180
 
.Sp
181
 
\&\fB%#.#le\fR \- prints numbers like 1.2346e+04. The optional integers # denote field
 
181
.IP "\fB%%\fR" 4
 
182
.IX Item "%%"
 
183
just prints a literal '%' character
 
184
.IP "\fB%#.#le\fR" 4
 
185
.IX Item "%#.#le"
 
186
prints numbers like 1.2346e+04. The optional integers # denote field
182
187
width and decimal precision.
183
 
.Sp
184
 
\&\fB%#.#lf\fR \- prints numbers like 12345.6789, with optional field width
 
188
.IP "\fB%#.#lf\fR" 4
 
189
.IX Item "%#.#lf"
 
190
prints numbers like 12345.6789, with optional field width
185
191
and precision.
186
 
.Sp
187
 
\&\fB%s\fR \- place this after \fB%le\fR, \fB%lf\fR or \fB%lg\fR. This will be replaced by the
 
192
.IP "\fB%s\fR" 4
 
193
.IX Item "%s"
 
194
place this after \fB%le\fR, \fB%lf\fR or \fB%lg\fR. This will be replaced by the
188
195
appropriate \s-1SI\s0 magnitude unit and the value will be scaled
189
196
accordingly (123456 \-> 123.456 k).
190
 
.Sp
191
 
\&\fB%S\fR \- is similar to \fB%s\fR. It does, however, use a previously defined
 
197
.IP "\fB%S\fR" 4
 
198
.IX Item "%S"
 
199
is similar to \fB%s\fR. It does, however, use a previously defined
192
200
magnitude unit. If there is no such unit yet, it tries to define
193
201
one (just like \fB%s\fR) unless the value is zero, in which case the magnitude
194
202
unit stays undefined. Thus, formatter strings using \fB%S\fR and no \fB%s\fR
195
203
will all use the same magnitude unit except for zero values.
196
 
.Sp
 
204
.PP
197
205
If you \s-1PRINT\s0 a \s-1VDEF\s0 value, you can also print the time associated with it by appending the string
198
206
\&\fB:strftime\fR to the format. Note that rrdtool uses the strftime function of your OSs clibrary. This means that
199
207
the conversion specifier may vary. Check the manual page if you are uncertain. The following is a list of
200
208
conversion specifiers usually supported across the board. 
201
 
.Sp
202
 
\&\fB%a\fR \- The abbreviated weekday name according to the current locale.
203
 
.Sp
204
 
\&\fB%A\fR \- The full weekday name according to the current locale.
205
 
.Sp
206
 
\&\fB%b\fR \- The abbreviated month name according to the current locale.
207
 
.Sp
208
 
\&\fB%B\fR \- The full month name according to the current locale.
209
 
.Sp
210
 
\&\fB%c\fR \- The preferred date and time representation for the current locale.
211
 
.Sp
212
 
\&\fB%d\fR \- The day of the month as a decimal number (range 01 to 31).
213
 
.Sp
214
 
\&\fB%H\fR \- The hour as a decimal number using a 24\-hour clock (range 00 to 23).
215
 
.Sp
216
 
\&\fB%I\fR \- The hour as a decimal number using a 12\-hour clock (range 01 to 12).
217
 
.Sp
218
 
\&\fB%j\fR \- The day of the year as a decimal number (range 001 to 366).
219
 
.Sp
220
 
\&\fB%m\fR \- The month as a decimal number (range 01 to 12).
221
 
.Sp
222
 
\&\fB%M\fR \- The minute as a decimal number (range 00 to 59).
223
 
.Sp
224
 
\&\fB%p\fR \- Either `\s-1AM\s0' or `\s-1PM\s0' according to the given time value, or the corresponding
 
209
.IP "\fB%a\fR" 4
 
210
.IX Item "%a"
 
211
The abbreviated weekday name according to the current locale.
 
212
.IP "\fB%A\fR" 4
 
213
.IX Item "%A"
 
214
The full weekday name according to the current locale.
 
215
.IP "\fB%b\fR" 4
 
216
.IX Item "%b"
 
217
The abbreviated month name according to the current locale.
 
218
.IP "\fB%B\fR" 4
 
219
.IX Item "%B"
 
220
The full month name according to the current locale.
 
221
.IP "\fB%c\fR" 4
 
222
.IX Item "%c"
 
223
The preferred date and time representation for the current locale.
 
224
.IP "\fB%d\fR" 4
 
225
.IX Item "%d"
 
226
The day of the month as a decimal number (range 01 to 31).
 
227
.IP "\fB%H\fR" 4
 
228
.IX Item "%H"
 
229
The hour as a decimal number using a 24\-hour clock (range 00 to 23).
 
230
.IP "\fB%I\fR" 4
 
231
.IX Item "%I"
 
232
The hour as a decimal number using a 12\-hour clock (range 01 to 12).
 
233
.IP "\fB%j\fR" 4
 
234
.IX Item "%j"
 
235
The day of the year as a decimal number (range 001 to 366).
 
236
.IP "\fB%m\fR" 4
 
237
.IX Item "%m"
 
238
The month as a decimal number (range 01 to 12).
 
239
.IP "\fB%M\fR" 4
 
240
.IX Item "%M"
 
241
The minute as a decimal number (range 00 to 59).
 
242
.IP "\fB%p\fR" 4
 
243
.IX Item "%p"
 
244
Either `\s-1AM\s0' or `\s-1PM\s0' according to the given time value, or the corresponding
225
245
strings for the current locale.  Noon is treated as `pm' and midnight as
226
246
`am'.  Note that in many locales and `pm' notation is unsupported and in
227
247
such cases \f(CW%p\fR will return an empty string.
228
 
.Sp
229
 
\&\fB%S\fR \- The second as a decimal number (range 00 to 61).
230
 
.Sp
231
 
\&\fB%U\fR \- The  week  number  of  the current year as a decimal number, range 00 to 53, starting with the
 
248
.IP "\fB%s\fR" 4
 
249
.IX Item "%s"
 
250
The second as a decimal number (range 00 to 61).
 
251
.IP "\fB%S\fR" 4
 
252
.IX Item "%S"
 
253
The seconds since the epoch (1.1.1970) (libc dependant non standard!)
 
254
.IP "\fB%U\fR" 4
 
255
.IX Item "%U"
 
256
The  week  number  of  the current year as a decimal number, range 00 to 53, starting with the
232
257
first Sunday as the first day of week 01. See also \f(CW%V\fR and \f(CW%W\fR.
233
 
.Sp
234
 
\&\fB%V\fR \- The \s-1ISO\s0 8601:1988 week number of the current year as a decimal number, range 01 to  53,  where
 
258
.IP "\fB%V\fR" 4
 
259
.IX Item "%V"
 
260
The \s-1ISO\s0 8601:1988 week number of the current year as a decimal number, range 01 to  53,  where
235
261
week  1 is the first week that has at least 4 days in the current year, and with Monday as the
236
262
first day of the week. See also \f(CW%U\fR and \f(CW%W\fR.
237
 
.Sp
238
 
\&\fB%w\fR \- The day of the week as a decimal, range 0 to 6, Sunday being 0.  See also \f(CW%u\fR.
239
 
.Sp
240
 
\&\fB%W\fR \- The week number of the current year as a decimal number, range 00 to  53,  starting  with  the
 
263
.IP "\fB%w\fR" 4
 
264
.IX Item "%w"
 
265
The day of the week as a decimal, range 0 to 6, Sunday being 0.  See also \f(CW%u\fR.
 
266
.IP "\fB%W\fR" 4
 
267
.IX Item "%W"
 
268
The week number of the current year as a decimal number, range 00 to  53,  starting  with  the
241
269
first Monday as the first day of week 01.
242
 
.Sp
243
 
\&\fB%x\fR \- The preferred date representation for the current locale without the time.
244
 
.Sp
245
 
\&\fB%X\fR \- The preferred time representation for the current locale without the date.
246
 
.Sp
247
 
\&\fB%y\fR \- The year as a decimal number without a century (range 00 to 99).
248
 
.Sp
249
 
\&\fB%Y\fR \- The year as a decimal number including the century.
250
 
.Sp
251
 
\&\fB%Z\fR \- The time zone or name or abbreviation.
252
 
.Sp
253
 
\&\fB%%\fR \- A literal `%' character.
254
 
.IP "\fB\s-1PRINT:\s0\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR" 4
255
 
.IX Item "PRINT:vname:CF:format"
 
270
.IP "\fB%x\fR" 4
 
271
.IX Item "%x"
 
272
The preferred date representation for the current locale without the time.
 
273
.IP "\fB%X\fR" 4
 
274
.IX Item "%X"
 
275
The preferred time representation for the current locale without the date.
 
276
.IP "\fB%y\fR" 4
 
277
.IX Item "%y"
 
278
The year as a decimal number without a century (range 00 to 99).
 
279
.IP "\fB%Y\fR" 4
 
280
.IX Item "%Y"
 
281
The year as a decimal number including the century.
 
282
.IP "\fB%Z\fR" 4
 
283
.IX Item "%Z"
 
284
The time zone or name or abbreviation.
 
285
.IP "\fB%%\fR" 4
 
286
.IX Item "%%"
 
287
A literal `%' character.
 
288
.PP
 
289
\fI\f(BI\s-1PRINT:\s0\fI\fIvname\fI\f(BI:\fI\fI\s-1CF\s0\fI\f(BI:\fI\fIformat\fI\fR
 
290
.IX Subsection "PRINT:vname:CF:format"
 
291
.PP
256
292
\&\fIDeprecated. Use the new form of this command in new scripts.\fR
257
293
The first form of this command is to be used with \fB\s-1CDEF\s0\fR \fIvname\fRs.
258
294
.Sh "\s-1GRAPH\s0"
259
295
.IX Subsection "GRAPH"
260
 
.IP "\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIformat\fR" 4
261
 
.IX Item "GPRINT:vname:format"
 
296
\fI\f(BI\s-1GPRINT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIformat\fI\fR
 
297
.IX Subsection "GPRINT:vname:format"
 
298
.PP
262
299
This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph.
263
 
.IP "\fB\s-1GPRINT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fI\s-1CF\s0\fR\fB:\fR\fIformat\fR" 4
264
 
.IX Item "GPRINT:vname:CF:format"
 
300
.PP
 
301
\fI\f(BI\s-1GPRINT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fI\s-1CF\s0\fI\f(BI:\fI\fIformat\fI\fR
 
302
.IX Subsection "GPRINT:vname:CF:format"
 
303
.PP
265
304
\&\fIDeprecated. Use the new form of this command in new scripts.\fR
266
305
This is the same as \f(CW\*(C`PRINT\*(C'\fR, but printed inside the graph.
267
 
.IP "\fB\s-1COMMENT\s0\fR\fB:\fR\fItext\fR" 4
268
 
.IX Item "COMMENT:text"
 
306
.PP
 
307
\fI\f(BI\s-1COMMENT\s0\fI\f(BI:\fI\fItext\fI\fR
 
308
.IX Subsection "COMMENT:text"
 
309
.PP
269
310
Text is printed literally in the legend section of the graph. Note that in
270
311
RRDtool 1.2 you have to escape colons in \s-1COMMENT\s0 text in the same way you
271
312
have to escape them in \fB*PRINT\fR commands by writing \fB'\e:'\fR.
272
 
.IP "\fB\s-1VRULE\s0\fR\fB:\fR\fItime\fR\fB#\fR\fIcolor\fR [\fB:\fR\fIlegend\fR ]" 4
273
 
.IX Item "VRULE:time#color [:legend ]"
 
313
.PP
 
314
\fI\f(BI\s-1VRULE\s0\fI\f(BI:\fI\fItime\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
 
315
.IX Subsection "VRULE:time#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
 
316
.PP
274
317
Draw a vertical line at \fItime\fR.  Its color is composed from three
275
318
hexadecimal numbers specifying the rgb color components (00 is off, \s-1FF\s0 is
276
319
maximum) red, green and blue followed by an optional alpha. Optionally, a legend box and string is
277
320
printed in the legend section. \fItime\fR may be a number or a variable
278
321
from a \fB\s-1VDEF\s0\fR. It is an error to use \fIvname\fRs from \fB\s-1DEF\s0\fR or \fB\s-1CDEF\s0\fR here.
279
 
.IP "\fB\s-1HRULE\s0\fR\fB:\fR\fIvalue\fR\fB#\fR\fIcolor\fR [ :\fIlegend\fR ]" 4
280
 
.IX Item "HRULE:value#color [ :legend ]"
 
322
Dashed lines can be drawn using the \fBdashes\fR modifier. See \fB\s-1LINE\s0\fR for more
 
323
details.
 
324
.PP
 
325
\fI\f(BI\s-1HRULE\s0\fI\f(BI:\fI\fIvalue\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
 
326
.IX Subsection "HRULE:value#color[:legend][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
 
327
.PP
281
328
Draw a horizontal line at \fIvalue\fR.  \s-1HRULE\s0 acts much like \s-1LINE\s0 except that
282
329
will have no effect on the scale of the graph. If a \s-1HRULE\s0 is outside the
283
330
graphing area it will just not be visible.
284
 
.IP "\fB\s-1LINE\s0\fR[\fIwidth\fR]\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]]" 4
285
 
.IX Item "LINE[width]:value[#color][:[legend][:STACK]]"
 
331
.PP
 
332
\fI\f(BI\s-1LINE\s0\fI[\fIwidth\fI]\f(BI:\fI\fIvalue\fI[\f(BI#\fI\fIcolor\fI][\f(BI:\fI[\fIlegend\fI][\f(BI:STACK\fI]][\f(BI:dashes\fI[\f(BI=\fI\fIon_s\fI[,\fIoff_s\fI[,\fIon_s\fI,\fIoff_s\fI]...]][\f(BI:dash\-offset=\fI\fIoffset\fI]]\fR
 
333
.IX Subsection "LINE[width]:value[#color][:[legend][:STACK]][:dashes[=on_s[,off_s[,on_s,off_s]...]][:dash-offset=offset]]"
 
334
.PP
286
335
Draw a line of the specified width onto the graph. \fIwidth\fR can be a
287
336
floating point number. If the color is not specified, the drawing is done
288
337
\&'invisibly'. This is useful when stacking something else on top of this
291
340
\&\fB\s-1VDEF\s0\fR, and \fB\s-1CDEF\s0\fR.  If the optional \fB\s-1STACK\s0\fR modifier is used, this line
292
341
is stacked on top of the previous element which can be a \fB\s-1LINE\s0\fR or an
293
342
\&\fB\s-1AREA\s0\fR.
294
 
.Sp
 
343
.PP
 
344
The \fBdashes\fR modifier enables dashed line style. Without any further options
 
345
a symmetric dashed line with a segment length of 5 pixels will be drawn. The
 
346
dash pattern can be changed if the \fBdashes=\fR parameter is followed by either
 
347
one value or an even number (1, 2, 4, 6, ...) of positive values. Each value
 
348
provides the length of alternate \fIon_s\fR and \fIoff_s\fR portions of the
 
349
stroke. The \fBdash-offset\fR parameter specifies an \fIoffset\fR into the pattern
 
350
at which the stroke begins.
 
351
.PP
295
352
When you do not specify a color, you cannot specify a legend.  Should
296
353
you want to use \s-1STACK\s0, use the \*(L"LINEx:<value>::STACK\*(R" form.
297
 
.IP "\fB\s-1AREA\s0\fR\fB:\fR\fIvalue\fR[\fB#\fR\fIcolor\fR][\fB:\fR[\fIlegend\fR][\fB:STACK\fR]]" 4
298
 
.IX Item "AREA:value[#color][:[legend][:STACK]]"
 
354
.PP
 
355
\fI\f(BI\s-1AREA\s0\fI\f(BI:\fI\fIvalue\fI[\f(BI#\fI\fIcolor\fI][\f(BI:\fI[\fIlegend\fI][\f(BI:STACK\fI]]\fR
 
356
.IX Subsection "AREA:value[#color][:[legend][:STACK]]"
 
357
.PP
299
358
See \fB\s-1LINE\s0\fR, however the area between the x\-axis and the line will
300
359
be filled.
301
 
.IP "\fB\s-1TICK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIrrggbb\fR[\fIaa\fR][\fB:\fR\fIfraction\fR[\fB:\fR\fIlegend\fR]]" 4
302
 
.IX Item "TICK:vname#rrggbb[aa][:fraction[:legend]]"
 
360
.PP
 
361
\fI\f(BI\s-1TICK\s0\fI\f(BI:\fI\fIvname\fI\f(BI#\fI\fIrrggbb\fI[\fIaa\fI][\f(BI:\fI\fIfraction\fI[\f(BI:\fI\fIlegend\fI]]\fR
 
362
.IX Subsection "TICK:vname#rrggbb[aa][:fraction[:legend]]"
 
363
.PP
303
364
Plot a tick mark (a vertical line) for each value of \fIvname\fR that is
304
365
non-zero and not *UNKNOWN*. The \fIfraction\fR argument specifies the length of
305
366
the tick mark as a fraction of the y\-axis; the default value is 0.1 (10% of
306
367
the axis). Note that the color specification is not optional. The \s-1TICK\s0 marks normaly
307
368
start at the lower edge of the graphing area. If the fraction is negative they start
308
369
at the upper border of the graphing area.
309
 
.IP "\fB\s-1SHIFT\s0\fR\fB:\fR\fIvname\fR\fB:\fR\fIoffset\fR" 4
310
 
.IX Item "SHIFT:vname:offset"
 
370
.PP
 
371
\fI\f(BI\s-1SHIFT\s0\fI\f(BI:\fI\fIvname\fI\f(BI:\fI\fIoffset\fI\fR
 
372
.IX Subsection "SHIFT:vname:offset"
 
373
.PP
311
374
Using this command \fBRRDtool\fR will graph the following elements
312
375
with the specified offset.  For instance, you can specify an
313
376
offset of (\ 7*24*60*60\ =\ )\ 604'800\ seconds to \*(L"look back\*(R" one
314
377
week. Make sure to tell the viewer of your graph you did this ...
315
378
As with the other graphing elements, you can specify a number or
316
379
a variable here.
317
 
.IP "\fB\s-1STACK\s0\fR\fB:\fR\fIvname\fR\fB#\fR\fIcolor\fR[\fB:\fR\fIlegend\fR]" 4
318
 
.IX Item "STACK:vname#color[:legend]"
 
380
.PP
 
381
\fI\f(BI\s-1TEXTALIGN\s0\fI\f(BI:\fI{\f(BIleft\fI|\f(BIright\fI|\f(BIjustified\fI|\f(BIcenter\fI}\fR
 
382
.IX Subsection "TEXTALIGN:{left|right|justified|center}"
 
383
.PP
 
384
Labels are placed below the graph. When they overflow to the left, they wrap
 
385
to the next line. By default, lines are justified left and right. The
 
386
\&\fB\s-1TEXTALIGN\s0\fR function lets you change this default. This is a command and
 
387
not an option, so that you can change the default several times in your
 
388
argument list.
 
389
.PP
 
390
\fI\f(BI\s-1STACK\s0\fI\f(BI:\fI\fIvname\fI\f(BI#\fI\fIcolor\fI[\f(BI:\fI\fIlegend\fI]\fR
 
391
.IX Subsection "STACK:vname#color[:legend]"
 
392
.PP
319
393
\&\fIDeprecated.  Use the \f(BI\s-1STACK\s0\fI modifiers on the other commands.\fR
320
394
.PP
321
395
\&\fBSome notes on stacking\fR
373
447
characters or the sequence \fB\et\fR to line-up legend elements. Note that
374
448
the tabs inserted are relative to the start of the current legend
375
449
element!
 
450
.PP
 
451
Since RRDtool 1.3 is using Pango for rending text, you can use Pango markup.
 
452
Pango uses the xml \fBspan\fR tags for inline formatting instructions.:
 
453
.PP
 
454
A simple example of a marked-up string might be: 
 
455
.PP
 
456
.Vb 1
 
457
\& <span foreground="blue" size="x\-large">Blue text</span> is <i>cool</i>!
 
458
.Ve
 
459
.PP
 
460
The complete list of attributes for the span tag (taken from the pango documentation):
 
461
.IP "\fBfont_desc\fR" 4
 
462
.IX Item "font_desc"
 
463
A font description string, such as \*(L"Sans Italic 12\*(R"; note that any other span attributes will override this description. So if you have \*(L"Sans Italic\*(R" and also a style=\*(L"normal\*(R" attribute, you will get Sans normal, not italic.
 
464
.IP "\fBfont_family\fR" 4
 
465
.IX Item "font_family"
 
466
A font family name
 
467
.IP "\fBface\fR" 4
 
468
.IX Item "face"
 
469
Synonym for font_family
 
470
.IP "\fBsize\fR" 4
 
471
.IX Item "size"
 
472
Font size in 1024ths of a point, or one of the absolute sizes 'xx\-small', 'x\-small', 'small', 'medium', 'large', 'x\-large', 'xx\-large', or one of the relative sizes 'smaller' or 'larger'. If you want to specify a absolute size, it's usually easier to take advantage of the ability to specify a partial font description using 'font_desc'; you can use font_desc='12.5' rather than size='12800'.
 
473
.IP "\fBstyle\fR" 4
 
474
.IX Item "style"
 
475
One of 'normal', 'oblique', 'italic'
 
476
.IP "\fBweight\fR" 4
 
477
.IX Item "weight"
 
478
One of 'ultralight', 'light', 'normal', 'bold', 'ultrabold', 'heavy', or a numeric weight
 
479
.IP "\fBvariant\fR" 4
 
480
.IX Item "variant"
 
481
\&'normal' or 'smallcaps'
 
482
.IP "\fBstretch\fR" 4
 
483
.IX Item "stretch"
 
484
One of 'ultracondensed', 'extracondensed', 'condensed', 'semicondensed', 'normal', 'semiexpanded', 'expanded', 'extraexpanded', 'ultraexpanded'
 
485
.IP "\fBforeground\fR" 4
 
486
.IX Item "foreground"
 
487
An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
 
488
.IP "\fBbackground\fR" 4
 
489
.IX Item "background"
 
490
An \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
 
491
.IP "\fBunderline\fR" 4
 
492
.IX Item "underline"
 
493
One of 'none', 'single', 'double', 'low', 'error'
 
494
.IP "\fBunderline_color\fR" 4
 
495
.IX Item "underline_color"
 
496
The color of underlines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
 
497
.IP "\fBrise\fR" 4
 
498
.IX Item "rise"
 
499
Vertical displacement, in 10000ths of an em. Can be negative for subscript, positive for superscript.
 
500
.IP "\fBstrikethrough\fR" 4
 
501
.IX Item "strikethrough"
 
502
\&'true' or 'false' whether to strike through the text
 
503
.IP "\fBstrikethrough_color\fR" 4
 
504
.IX Item "strikethrough_color"
 
505
The color of strikethrough lines; an \s-1RGB\s0 color specification such as '#00FF00' or a color name such as 'red'
 
506
.IP "\fBfallback\fR" 4
 
507
.IX Item "fallback"
 
508
\&'true' or 'false' whether to enable fallback. If disabled, then characters will only be used from the closest matching font on the system. No fallback will be done to other fonts on the system that might contain the characters in the text. Fallback is enabled by default. Most applications should not disable fallback.
 
509
.IP "\fBlang\fR" 4
 
510
.IX Item "lang"
 
511
A language code, indicating the text language
 
512
.IP "\fBletter_spacing\fR" 4
 
513
.IX Item "letter_spacing"
 
514
Inter-letter spacing in 1024ths of a point.
 
515
.IP "\fBgravity\fR" 4
 
516
.IX Item "gravity"
 
517
One of 'south', 'east', 'north', 'west', 'auto'.
 
518
.IP "\fBgravity_hint\fR" 4
 
519
.IX Item "gravity_hint"
 
520
One of 'natural', 'strong', 'line'.
 
521
.PP
 
522
To save you some typing, there are also some shortcuts:
 
523
.IP "\fBb\fR" 4
 
524
.IX Item "b"
 
525
Bold
 
526
.IP "\fBbig\fR" 4
 
527
.IX Item "big"
 
528
Makes font relatively larger, equivalent to <span size=\*(L"larger\*(R">
 
529
.IP "\fBi\fR" 4
 
530
.IX Item "i"
 
531
Italic
 
532
.IP "\fBs\fR" 4
 
533
.IX Item "s"
 
534
Strikethrough
 
535
.IP "\fBsub\fR" 4
 
536
.IX Item "sub"
 
537
Subscript
 
538
.IP "\fBsup\fR" 4
 
539
.IX Item "sup"
 
540
Superscript
 
541
.IP "\fBsmall\fR" 4
 
542
.IX Item "small"
 
543
Makes font relatively smaller, equivalent to <span size=\*(L"smaller\*(R">
 
544
.IP "\fBtt\fR" 4
 
545
.IX Item "tt"
 
546
Monospace font
 
547
.IP "\fBu\fR" 4
 
548
.IX Item "u"
 
549
Underline 
376
550
.SH "SEE ALSO"
377
551
.IX Header "SEE ALSO"
378
552
rrdgraph gives an overview of how \fBrrdtool graph\fR works.