Matplotlib

4. Matplotlib#

Matplotlib is a standard for producing high-quality and interactive figures. The pyplot module is highly similar to Matlab’s plotting functions, and offers an easy-to-understand, yet very powerful way to produce figures.

Matplotlib can generate a wide variety of plots. Here are different examples that are relevant to biomechanics, reproduced from the Matplotlib website:

This chapter focuses solely on line plots using plt.plot. However, after learning this type of plot and NumPy, any other type of plot will become relatively easy to draw just by reading their documentation.

Chapter Contents