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

« back to all changes in this revision

Viewing changes to examples/graphstyles/histogram.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
 
d = graph.data.list([(1,  0.3),
4
 
                     (2, -0.7),
5
 
                     (3, -0.3),
6
 
                     (4,  0.8),
7
 
                     (5,  0.5)], x=1, y=2)
 
3
d = graph.data.points([(1,  0.3),
 
4
                       (2, -0.7),
 
5
                       (3, -0.3),
 
6
                       (4,  0.8),
 
7
                       (5,  0.5)], x=1, y=2)
8
8
 
9
9
g = graph.graphxy(width=8)
10
10
g.plot(d, [graph.style.histogram()])