X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=doc%2Frrdgraph.src;h=b829a7ba09c8d072f605db7061e64d35314b38a9;hb=47fa927b5b6eda596232bda869da018a68cf2198;hp=06e07615ea64ab1da053eed4924690653a6fccb3;hpb=35e66dd1f1a4c2d6934e74a137f047bc0c6a9c38;p=rrdtool.git diff --git a/doc/rrdgraph.src b/doc/rrdgraph.src index 06e0761..b829a7b 100644 --- a/doc/rrdgraph.src +++ b/doc/rrdgraph.src @@ -1,11 +1,10 @@ =include name -=head1 SYNOPSYS +=head1 SYNOPSIS B I [EB>E ...] -EB>E -[EB>E ...] +EB>E[ ...] [EB>E ...] [EB>E ...] [EB>E ...] @@ -13,7 +12,7 @@ EB>E =head1 DESCRIPTION -The B function of B is used to represent the +The B function of B is used to present the data from an B to a human viewer. Its main purpose is to create a nice graphical representation but it can also generate a numerical report. @@ -61,7 +60,7 @@ statements (after all, most of them do define graph elements...). =item filename The name and path of the graph to generate. It is recommended to -end this in C<.png> or C<.gif> but B does not enforce this. +end this in C<.png>, C<.svg> or C<.eps> but B does not enforce this. I can be 'C<->' to send the image to C. In that case, no other output is generated. @@ -72,7 +71,7 @@ Z<> B<[-s|--start EtimeE]> B<[-e|--end EtimeE]> -B<[--step EsecondsE]> +B<[-S|--step EsecondsE]> The start and end of what you would like to display, and which B the data should come from. Defaults are: 1 day ago until @@ -103,11 +102,16 @@ Z<> =item Size B<[-w|--width EpixelsE]> -B<[-h|--heigth EpixelsE]> +B<[-h|--height EpixelsE]> +B<[-j|--only-graph]> The width and height of the B (the part of the graph with the actual lines and such). Defaults are 400 pixels by 100 pixels. +If you specify the B<--only-graph> and set the height < 32 pixels you will +get a tiny graph image to use as an icon in a potential overview. All +labeling will be stripped off the graph. + Z<> =item Limits @@ -134,7 +138,7 @@ By default the graph will be autoscaling so that it displays the portion of the y-axis that is actually used. You can change this behaviour by setting the limits. The displayed y-axis will show at most B and at least B -at the top, and similarily at least B and +at the top, and similarly at least B and at most B at the bottom. The default is to display at most B (so: no limit) and at least B (no minimal value) at the top. The bottom of @@ -154,7 +158,7 @@ To mimic the old B option, you can do: --maximum-upper-limit 4000 --minimum-upper-limit 4000 --maximum-lower-limit -3000 --minimum-lower-limit -3000 -B<[--alt-autoscale]> +B<[-A|--alt-autoscale]> Sometimes the default algorithm for selecting the y-axis scale is not performing very well. Normally the scale is selected from a predefined @@ -164,7 +168,7 @@ maximum y-axis from the actual minimum and maximum values. Our example would display slightly less than C<260-0.001> to slightly more than C<260+0.001> (Contributed by Sasha Mikheev). -B<[--alt-autoscale-max]> +B<[-M|--alt-autoscale-max]> Where C<--alt-autoscale> will modify both the absolute maximum AND minimum values, this option will only affect the maximum value. The minimum @@ -172,6 +176,18 @@ value, if not defined on the command line, will be 0. This option can be useful when graphing router traffic when the WAN line uses compression, and thus the throughput may be higher than the WAN line speed. +B<[-N|--no-gridfit]> + +To avoid anti-aliasing effects gridlines are placed on +integer pixel values. This is by default done by extending +the scale so gridlines happens to be spaced using an +integer number of pixels, and starts on integer pixel value. +This might extend the scale too much for some logarithmic scales +and for linear scales where --alt-autoscale is needed. +Using --no-gridfit disables modification of the scale, +and just truncates y-coordinates to integer values for bitmap +formats. + Z<> =item Grid @@ -199,7 +215,7 @@ in I and a I format string in I. I defines where each label will be placed. If it is zero, the label will be placed right under the corresponding line (useful for hours, dates etcetera). If you specify a number of seconds here the label is -centered in this interval (useful for monday, januari etcetera). +centered in this interval (useful for Monday, January etcetera). Example: C<--x-grid MINUTE:10:HOUR:1:HOUR:4:0:%X> @@ -226,7 +242,7 @@ placed every I