Matplotlib

From Wiki
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