Examples: examples/bar.pyΒΆ

_images/bar.png

Back to Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
plot = Plot()

bar = Bar()
bar.xValues = range(5)
bar.yValues = [2, 8, 4, 6, 5]

plot.add(bar)
plot.xLabel = "Widget ID"
plot.yLabel = "# Widgets Sold"

plot.save("bar.png")