Member-only story
Matplotlib Cheat Sheet
Basic plots, include code samples.
Matplotlib is a plotting library for the Python programming language. The most used module of Matplotib is Pyplot which provides an interface like Matlab but instead, it uses Python and it is open source.
In this note, we will focus on basic Matplotlib to help visualize our data. This is not a comprehensive list but contains common types of data visualization formats. Let’s hop to it!
The structure of this note:
- Anatomy of Matplotlib Figure
- Start with Pyplot
- Chart Types
Anatomy of Matplotlib Figure
A figure contains the overall window where plotting happens.
Axes: It is what we generally think of as a plot. Each Axes has a title, an x-label, and a y-label.
Note: We can have more than one Axes in a figure which helps in building multiple plots.