Show Menu
Cheatography

pyplot Cheat Sheet (DRAFT) by

A cheatsheet for the pyplot interface

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Jupyter backend options

Separate window
%matpl­otlib
Inline (static) default
%matpl­otlib inline
Inline (inter­active)
%matpl­otlib notebook

Import statement

import matplotlib.pyplot as plt

Figure Management

plt.fi­gur­e(**­co­nfig)
Create a new figure
plt.gca()
Get the current figure