~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): Stuart Prescott
  • Date: 2009-10-29 23:47:39 UTC
  • mfrom: (5.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20091029234739-cc178gmb3vp5828t
Tags: 0.10-1
* New maintainer (closes: #552750).
* Revert unneeded versioned build-dependency on python-all-dev.
* Add a preinst script to clean up after python-central (working around
  bug #479852 in python-central) (closes: #553271).
* Convert packaging to quilt.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
from pyx import *
2
2
 
3
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))
 
4
g.plot(graph.data.points([((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
10
g.writeEPSfile("minimal")
11
11
g.writePDFfile("minimal")