Plot types#

Every thumbnail below is the output of the command it names, drawn by that command. Click one to read its documentation.

Note

This page is generated by tools/cheatsheet/docs_index.py from the same registry the cheatsheet is built from. Re-run it after adding a plotting command.

Relational#

How one variable relates to another.

Distributions#

The shape and spread of a sample.

Fields#

A value over a two-dimensional grid.

Vector fields#

Direction and magnitude on a grid.

Networks and diagrams#

Relationships that are not a grid.

Maps#

A projection by name, with any plotting command drawn on top in lon/lat.

proj='robin'

proj='ortho'

coast, land, ocean

scatter on a map

scatter()

quiver on a map

quiver()

plot on a map

plot()

What one keyword does#

The same command, changed by a single argument.

stack=True

bar()

negpos=True

bar()

stack=True

area()

negpos=True

area()

bars=True

plot()

labels=True

contour()

labels=True

heatmap()

levels=6

pcolormesh()

discrete=False

pcolormesh()

values=

pcolormesh()

Swapped axes#

Every command has a sibling that puts the categories on the other axis.