matplotlib

This is an old revision of the document!


Non interactive:

import matplotlib.pyplot as plt
import numpy as np
plt.plot(....)

Embedded matplotlib in a gui. pylab is a way of importing pyplot and most of numpy into the namespace. This is equivalent to from pylab import *. Note that it imports numpy as np and pyplot as plt.

ipython --pylab
  • matplotlib.1437853914.txt.gz
  • Last modified: 11 years ago
  • by admin