Matplotlib

From Wiki
Revision as of 22:42, 4 August 2011 by Scott (talk | contribs) (Created page with '== Install == For Ubuntu: <pre> sudo apt-get install python-matplotlib </pre> Otherwise, read this: http://matplotlib.sourceforge.net/users/installing.html == Basic Example == …')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Install

For Ubuntu:

sudo apt-get install python-matplotlib

Otherwise, read this: http://matplotlib.sourceforge.net/users/installing.html

Basic Example

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()

See the tutorial here: http://matplotlib.sourceforge.net/users/pyplot_tutorial.html