Skip to content

Commit 6f5d204

Browse files
author
Brian Luft
committed
cleans up intro example
1 parent 55ae594 commit 6f5d204

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

README.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
python-flot-utils
22
=================
33

4-
Utilities for generating pyflot graphs within Python.
4+
Utilities for generating flot_ graphs within Python.
55

66
For example::
77

8-
from pyflot import Flot
9-
f = Flot()
10-
f.add_series([(1,1), (2,2), (3,3)])
11-
print f.series_json
12-
13-
[{data: [[1,1], [2,2], [3,3]}]
14-
8+
>>> import pyflot
9+
>>> f = pyflot.Flot()
10+
>>> f.add_series([(1,1), (2,2), (3,3)])
11+
>>> print f.series_json
12+
[{"data": [[1, 1], [2, 2], [3, 3]]}]
1513

14+
In this simple example the `series_json` is a JSON string
15+
in the format expected by `flot`.
1616

17+
.. _flot: http://code.google.com/p/flot/

0 commit comments

Comments
 (0)