~ubuntu-branches/ubuntu/trusty/pyx/trusty

« back to all changes in this revision

Viewing changes to examples/splitgraphs/minimal.py

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2006-11-26 14:04:53 UTC
  • mfrom: (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20061126140453-1dq3cycpspmlik2t
Tags: 0.9-3
* New maintainer. Thank you for more than three years of
  maintenance,  Graham! Closes: #400087
* Don't hard-code python 2.3 in manual/Makefile.
  Thanks to Matthias Klose for the bug report and patch.
  Closes: #392634
* Remove obsolete dh_python call from debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from pyx import *
 
2
 
 
3
g = graph.graphxy(width=8, x=graph.axis.split())
 
4
g.plot(graph.data.list([((0, 0.1), 0.1),
 
5
                        ((0, 0.5), 0.2),
 
6
                        ((0, 0.9), 0.3),
 
7
                        ((1, 101), 0.7),
 
8
                        ((1, 105), 0.8),
 
9
                        ((1, 109), 0.9)], x=1, y=2))
 
10
g.writeEPSfile("minimal")
 
11
g.writePDFfile("minimal")