Matplotlib: Difference between revisions

From Wiki
Jump to navigation Jump to search
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 == …'
(No difference)

Revision as of 22:42, 4 August 2011

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