X-Git-Url: https://git.octo.it/?p=rrdtool.git;a=blobdiff_plain;f=doc%2Frrdpython.pod;h=f041b0b59b0eed011bb592a1c6d48f3de0cf9879;hp=2d634269496dc082934aaa25c38a33566551fb5e;hb=d4110e29da41ce702bcc3327e86768c6f266915e;hpb=6e21e35d25bdf1110711669bef87dcfaf621bb22 diff --git a/doc/rrdpython.pod b/doc/rrdpython.pod index 2d63426..f041b0b 100644 --- a/doc/rrdpython.pod +++ b/doc/rrdpython.pod @@ -5,7 +5,7 @@ rrdpython - About the RRD Python bindings =head1 SYNOPSIS import rrdtool - rrdtool.create('/tmp/test.rrd', 'DS:foo:GUAGE:20:0:U') + rrdtool.create('/tmp/test.rrd', 'DS:foo:GAUGE:20:0:U') =head1 DESCRIPTION @@ -18,6 +18,7 @@ to the other B documentation for functions and valid arguments. =head1 EXAMPLE + import sys sys.path.append('/path/to/rrdtool/lib/python2.3/site-packages/') import rrdtool, tempfile @@ -25,7 +26,7 @@ to the other B documentation for functions and valid arguments. YEAR = 365 * DAY fd,path = tempfile.mkstemp('.png') - rrdtool.graph(path, + rrdtool.graph(path, '--imgformat', 'PNG', '--width', '540', '--height', '100',