Plotting package?
John Hunter
jdhunter at ace.bsd.uchicago.edu
Tue Apr 25 16:19:25 EDT 2006
>>>>> "Andrew" == Andrew Koenig <ark at acm.org> writes:
Andrew> This may be a foolish question, but what's the most
Andrew> straightforward way to plot a bunch of data in Python?
in matplotlib/pylab
from pylab import figure, show
x = range(10)
y = [val**2 for val in x]
fig = figure()
ax = fig.add_subplot(111)
ax.plot(x,y)
ax.set_title('My first plot')
ax.set_xlabel('x')
ax.set_ylabel('y')
show()
Tutorial: http://matplotlib.sourceforge.net/tutorial.html
Screenshots: http://matplotlib.sourceforge.net/screenshots.html
JDH
More information about the Python-list
mailing list