fallback (with warning) to linear partitioner on a small logarithmics scale
[PyX.git] / examples / bargraphs / minimal.py
blob2117c30de56f8d62000a785a5425c8f4eafd24c9
1 # For a minimal bar plot you have set an bar axis
2 # in the graph constructor and provide Xname column
3 # data (X stands for the bar axis to be used).
4 # Furthermore you need to specify the graph style,
5 # since the default graph styles symbol and function
6 # (depending on the data type) are not appropriate
7 # for this case.
9 from pyx import *
11 g = graph.graphxy(width=8, x=graph.axis.bar())
12 g.plot(graph.data.file("bar.dat", xname=0, y=2), [graph.style.bar()])
13 g.writeEPSfile("minimal")
14 g.writePDFfile("minimal")