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

« back to all changes in this revision

Viewing changes to manual/graph3.py

  • Committer: Bazaar Package Importer
  • Author(s): Graham Wilson
  • Date: 2004-12-25 06:42:57 UTC
  • Revision ID: james.westby@ubuntu.com-20041225064257-31469ij5uysqq302
Tags: upstream-0.7.1
ImportĀ upstreamĀ versionĀ 0.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from pyx import *
 
2
g = graph.graphxy(width=8, x=graph.axis.linear(min=-5, max=5),
 
3
                           y=graph.axis.logarithmic())
 
4
g.plot(graph.data.function("y=exp(x)"))
 
5
g.writeEPSfile("graph3")