

It is possible to include subscripts and Greek letters in matplotlib figure labels using LaTeX. Next we will use functions for matplotlib.pyplot to add labels for each axis. First, we need to import the library, set the size of the figure and indicate the data for the plot. Let’s start with a simple x-y scatter plot of the protein calibration curve data. This library contains tools for plotting and annotating the data. This approach is similar to using the stats subset of the functions found in scipy. We are going to use one subset of matplotlib’s functions called pyplot.

These are all available with matplotlib, plus many more. It is possible to create many graph formats in matplotlib, including “picture within a picture graphs.” Think of the chart options that are available in your spreadsheet program. You can use matplotlib to create and fully annotate high resolution, publication quality plots that can be easily exported for inclusion in reports and manuscripts. Matplotlib is used alongside numpy to provide for MATLAB-style plotting. Matplotlib is a library that supports static, animated and interactive data visualization in Python ( Matplotlib: Visualization with Python).
