Hi Michael, graph.data.points(zip()) -> graph.data.values
We do have data providers foth both ordering schemes now. Could be added to the description ... André Am 25.03.2008 um 17:17 schrieb [EMAIL PROTECTED]: > Revision: 2971 > http://pyx.svn.sourceforge.net/pyx/?rev=2971&view=rev > Author: m-schindler > Date: 2008-03-25 09:17:36 -0700 (Tue, 25 Mar 2008) > > Log Message: > ----------- > added an example for the plotting of points > > Modified Paths: > -------------- > trunk/pyx/examples/graphs/INDEX > > Added Paths: > ----------- > trunk/pyx/examples/graphs/points.py > trunk/pyx/examples/graphs/points.txt > > Modified: trunk/pyx/examples/graphs/INDEX > =================================================================== > --- trunk/pyx/examples/graphs/INDEX 2008-03-25 14:07:10 UTC (rev 2970) > +++ trunk/pyx/examples/graphs/INDEX 2008-03-25 16:17:36 UTC (rev 2971) > @@ -1,5 +1,6 @@ > minimal > function > +points > lissajous > axis > change > > Added: trunk/pyx/examples/graphs/points.py > =================================================================== > --- trunk/pyx/examples/graphs/points.py (rev > 0) > +++ trunk/pyx/examples/graphs/points.py 2008-03-25 16:17:36 UTC (rev > 2971) > @@ -0,0 +1,9 @@ > +# contributed by Chris Spencer > + > +from pyx import * > + > +g = graph.graphxy(width=8) > +g.plot(graph.data.points(zip(range(10),range(10)), x=1, y=2)) > +g.writeEPSfile("points") > +g.writePDFfile("points") > + > > Added: trunk/pyx/examples/graphs/points.txt > =================================================================== > --- trunk/pyx/examples/graphs/points.txt > (rev 0) > +++ trunk/pyx/examples/graphs/points.txt 2008-03-25 16:17:36 UTC > (rev 2971) > @@ -0,0 +1,18 @@ > +Plotting a list of data points > + > +Here, we explain how to plot data which has been calculated before > and which is > +contained in a list. ... > + > +The procedure is quite the same as for plotting a data file or a > function in > +the above examples. The difference is that we here use a > `graph.data.points` > +instance to the `plot` method of the graph. It takes a list of data > points > +which come as tuples. You will have to say something like `x=1, > y=2` to specify > +which entry in your tuples is to be used on which axis. > + > +Similarly to the plotting of a data file, the default plotting > style is with > +symbols. This appears to be the the natural choice, since the data > is of > +discrete nature. > + > +Caution: This feature has been renamed between versions 0.9 and > 0.10. The old > +name in version 0.9 and before was `graph.data.list`. > + > > > This was sent by the SourceForge.net collaborative development > platform, the world's largest Open Source development site. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > PyX-checkins mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/pyx-checkins > -- by _ _ _ Dr. André Wobst, Amselweg 22, 85716 Unterschleißheim / \ \ / ) [EMAIL PROTECTED], http://www.wobsta.de/ / _ \ \/\/ / PyX - High quality PostScript and PDF figures (_/ \_)_/\_/ with Python & TeX: visit http://pyx.sourceforge.net/ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ PyX-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyx-devel
