Chapter 6. Plotting
Plotting in Python can be done with the
pyplot part of the matplotlib module. With matplotlib you can create high-quality figures and graphics and also plot and visualize your results. Matplotlib is open source and freely available software, . The matplotlib website also contains excellent documentation with examples, . In this section, we will show you how to use the most common features. The examples in the upcoming sections assume that you have imported the module as:
from matplotlib.pyplot import *
In case you want to use the plotting commands in IPython, it is recommended that you run the magic command
%matplotlib directly after starting the IPython shell. This prepares IPython for interactive plotting.