Im thinking about making a little system for an imaginary retailer, Im going to have a section for the employers and there sales figures, Was just wondering If there was something like an import function for graphs? Im a bit of a noob so go easy

Recommended Answers

All 3 Replies

Ill have a play around with that, thankyou!!

Just a typical example ...

make a simple horizontal bar chart

downloaded Windows installer (Python 3.3 version)

tested with Python33
for result see:

from pylab import *

# names of sales persons
persons = ['Tom', 'Jean', 'Paul', 'Mike', 'Beth']
# monthly sales numbers for each the above sales persons
x = [12600, 13400, 16350, 17100, 14700]
# centers the bars on the y axis
y = [0.5, 1.5, 2.5, 3.5, 4.5]

# horizontal bar is barh()
barh(y, x, align='center')
yticks(y, persons)
xlabel('$ sales')
title('Weekly Sales Numbers May 2012')

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.