MCS 275 Spring 2021
Emily Dumas
Course bulletins:
You don't need to install anything if you want to use matplotlib in Google Colab. But to install on your own machine, use:
python3 -m pip install matplotlib
Or see more detailed instructions.
MATLAB is a proprietary software package for numerical computation. It has its own language, and is popular in engineering and applied sciences. It was first released in 1984.
It quickly developed a reputation for making it easy to generate nice plots.
matplotlib is a library for making 2D plots in Python. It was developed starting in 2003 by John Hunter (then a neurobiology postdoc), inspired by the plotting interface of MATLAB.
Today it is the most widely used plotting package for Python, and the Python+numpy+matplotlib "stack" is increasingly popular for applications where MATLAB was once dominant.
Matplotlib can be used in several ways:
As with numpy, I'll do most of the intro as a series of coding demos in a notebook.
While I'll post the updated notebook after lecture, I suggest using Chapter 4 of VanderPlas as your primary reference because it has detailed explanatory text and sample code notebooks.