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

« back to all changes in this revision

Viewing changes to gallery/graphs/inset.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.linear(min=-2, max=2))
 
4
g.plot(graph.data.function("y(x)=exp(x)"))
 
5
g2 = g.insert(graph.graphxy(width=3.5, xpos=1, ypos=2,
 
6
                            x=graph.axis.linear(min=0, max=3),
 
7
                            y=graph.axis.linear(min=-2, max=2)))
 
8
g2.plot(graph.data.function("y(x)=log(x)"))
 
9
g.writeEPSfile("inset")
 
10
g.writePDFfile("inset")