
上QQ阅读APP看书,第一时间看更新
Importing Matplotlib
You might be in luck again: if you followed the advice outlined in the previous chapter and installed the Python Anaconda stack, you already have Matplotlib installed and are ready to go. Otherwise, you might want to visit http://matplotlib.org for installation instructions.
Just as we used np shorthand for NumPy, we will use some standard shorthand for the Matplotlib imports:
In [1]: import matplotlib as mpl
In [2]: import matplotlib.pyplot as plt
The plt interface is what we will use most often, as we shall see throughout the book.