added graph.data.values to the points example
[PyX/mjg.git] / examples / graphs / points.txt
blob5541ce9a4118ce3e950fd28a0f049f0e7d0287b8
1 Plotting data contained in one or more lists
3 Here, we explain how to plot data which has been calculated before and which is
4 available in a list. ...
6 The procedure is quite the same as for plotting a data file or a function in
7 the above examples. It differs in that we use an instance of
8 `graph.data.values` or `graph.data.points` in the `plot` method of the graph.
9 The choice of one or the other variant depends on convenience and how the data
10 has been generated: In `graph.data.values` the coordinate values are provided
11 as individual lists. Alternatively, `graph.data.points` takes a list of data
12 points which come as coordinate tuples. You will then have to say something
13 like `x=1, y=2` to specify which entry in your tuples is to be used on which
14 axis.
16 Similarly to the plotting of a data file, the default plotting style here are
17 symbols.
19 Caution: This feature has been renamed/introduced between versions 0.9 and
20 0.10. In versions 0.9 and before the functionality of `graph.data.points` was
21 provided by `graph.data.list`.