matplotlib.pyplot.subplots#

matplotlib.pyplot.subplots(nrows=1, ncols=1, *, sharex=False, sharey=False, squeeze=True, width_ratios=None, height_ratios=None, subplot_kw=None, gridspec_kw=None, **fig_kw)[source]#

Create a figure and a set of subplots.

This utility wrapper makes it convenient to create common layouts of subplots, including the enclosing figure object, in a single call.

Parameters:
nrows, ncolsint, default: 1

Number of rows/columns of the subplot grid.

sharex, shareybool or {'none', 'all', 'row', 'col'}, default: False

Controls sharing of properties among x (sharex) or y (sharey) axes:

  • True or 'all': x- or y-axis will be shared among all subplots.

  • False or 'none': each subplot x- or y-axis will be independent.

  • 'row': each subplot row will share an x- or y-axis.

  • 'col': each subplot column will share an x- or y-axis.

When subplots have a shared x-axis along a column, only the x tick labels of the bottom subplot are created. Similarly, when subplots have a shared y-axis along a row, only the y tick labels of the first column subplot are created. To later turn other subplots' ticklabels on, use tick_params.

When subplots have a shared axis that has units, calling Axis.set_units will update each axis with the new units.

Note that it is not possible to unshare axes.

squeezebool, default: True
  • If True, extra dimensions are squeezed out from the returned array of Axes:

    • if only one subplot is constructed (nrows=ncols=1), the resulting single Axes object is returned as a scalar.

    • for Nx1 or 1xM subplots, the returned object is a 1D numpy object array of Axes objects.

    • for NxM, subplots with N>1 and M>1 are returned as a 2D array.

  • If False, no squeezing at all is done: the returned Axes object is always a 2D array containing Axes instances, even if it ends up being 1x1.

width_ratiosarray-like of length ncols, optional

Defines the relative widths of the columns. Each column gets a relative width of width_ratios[i] / sum(width_ratios). If not given, all columns will have the same width. Equivalent to gridspec_kw={'width_ratios': [...]}.

height_ratiosarray-like of length nrows, optional

Defines the relative heights of the rows. Each row gets a relative height of height_ratios[i] / sum(height_ratios). If not given, all rows will have the same height. Convenience for gridspec_kw={'height_ratios': [...]}.

subplot_kwdict, optional

Dict with keywords passed to the add_subplot call used to create each subplot.

gridspec_kwdict, optional

Dict with keywords passed to the GridSpec constructor used to create the grid the subplots are placed on.

**fig_kw

All additional keyword arguments are passed to the pyplot.figure call.

Returns:
figFigure
axAxes or array of Axes

ax can be either a single Axes object, or an array of Axes objects if more than one subplot was created. The dimensions of the resulting array can be controlled with the squeeze keyword, see above.

Typical idioms for handling the return value are:

# using the variable ax for single a Axes
fig, ax = plt.subplots()

# using the variable axs for multiple Axes
fig, axs = plt.subplots(2, 2)

# using tuple unpacking for multiple Axes
fig, (ax1, ax2) = plt.subplots(1, 2)
fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)

The names ax and pluralized axs are preferred over axes because for the latter it's not clear if it refers to a single Axes instance or a collection of these.

Examples

# First create some toy data:
x = np.linspace(0, 2*np.pi, 400)
y = np.sin(x**2)

# Create just a figure and only one subplot
fig, ax = plt.subplots()
ax.plot(x, y)
ax.set_title('Simple plot')

# Create two subplots and unpack the output array immediately
f, (ax1, ax2) = plt.subplots(1, 2, sharey=True)
ax1.plot(x, y)
ax1.set_title('Sharing Y axis')
ax2.scatter(x, y)

# Create four polar Axes and access them through the returned array
fig, axs = plt.subplots(2, 2, subplot_kw=dict(projection="polar"))
axs[0, 0].plot(x, y)
axs[1, 1].scatter(x, y)

# Share a X axis with each column of subplots
plt.subplots(2, 2, sharex='col')

# Share a Y axis with each row of subplots
plt.subplots(2, 2, sharey='row')

# Share both X and Y axes with all subplots
plt.subplots(2, 2, sharex='all', sharey='all')

# Note that this is the same as
plt.subplots(2, 2, sharex=True, sharey=True)

# Create figure number 10 with a single subplot
# and clears it if it already exists.
fig, ax = plt.subplots(num=10, clear=True)

Examples using matplotlib.pyplot.subplots#

Image

Decay

Decay
Image

Animated histogram

Animated histogram
Image

pyplot animation

pyplot animation
Image

The Bayes update

The Bayes update
Image

Animated image using a precomputed list of images

Animated image using a precomputed list of images
Image

Multiple Axes animation

Multiple Axes animation
Image

Pause and resume an animation

Pause and resume an animation
Image

Animated line plot

Animated line plot
Image

Animated scatter saved as GIF

Animated scatter saved as GIF
Image

Oscilloscope

Oscilloscope
Image

Anchored Direction Arrow

Anchored Direction Arrow
Image

HBoxDivider and VBoxDivider demo

HBoxDivider and VBoxDivider demo
Image

Show RGB channels using RGBAxes

Show RGB channels using RGBAxes
Image

Colorbar with AxesDivider

Colorbar with AxesDivider
Image

Control the position and size of a colorbar with Inset Axes

Control the position and size of a colorbar with Inset Axes
Image

Inset locator demo

Inset locator demo
Image

Inset locator demo 2

Inset locator demo 2
Image

Align histogram to scatter plot using locatable Axes

Align histogram to scatter plot using locatable Axes
Image

Simple Anchored Artists

Simple Anchored Artists
Image

Color by y-value

Color by y-value
Image

Colors in the default property cycle

Colors in the default property cycle
Image

Color Demo

Color Demo
Image

Named color sequences

Named color sequences
Image

Colorbar

Colorbar
Image

Colormap reference

Colormap reference
Image

Create a colormap from a list of colors

Create a colormap from a list of colors
Image

Selecting individual colors from a colormap

Selecting individual colors from a colormap
Image

List of named colors

List of named colors
Image

Ways to set a color's alpha value

Ways to set a color's alpha value
Image

Mouse move and click events

Mouse move and click events
Image

Cross-hair cursor

Cross-hair cursor
Image

Data browser

Data browser
Image

Figure/Axes enter and leave events

Figure/Axes enter and leave events
Image

Scroll event

Scroll event
Image

Keypress event

Keypress event
Image

Legend picking

Legend picking
Image

Looking glass

Looking glass
Image

Path editor

Path editor
Image

Pick event demo

Pick event demo
Image

Pick event demo 2

Pick event demo 2
Image

Polygon editor

Polygon editor
Image

Pong

Pong
Image

Resampling Data

Resampling Data
Image

Timers

Timers
Image

Trifinder Event Demo

Trifinder Event Demo
Image

Viewlims

Viewlims
Image

Zoom modifies other Axes

Zoom modifies other Axes
Image

Affine transform of an image

Affine transform of an image
Image

Wind barbs

Wind barbs
Image

Interactive adjustment of colormap range

Interactive adjustment of colormap range
Image

Colormap normalizations

Colormap normalizations
Image

Colormap normalizations SymLogNorm

Colormap normalizations SymLogNorm
Image

Contour corner mask

Contour corner mask
Image

Contour Demo

Contour Demo
Image

Contour image

Contour image
Image

Contour Label Demo

Contour Label Demo
Image

Contourf demo

Contourf demo
Image

Contourf hatching

Contourf hatching
Image

Contourf and log color scale

Contourf and log color scale
Image

Contouring the solution space of optimizations

Contouring the solution space of optimizations
Image

BboxImage Demo

BboxImage Demo
Image

Annotated heatmap

Annotated heatmap
Image

Image resampling

Image resampling
Image

Clipping images with patches

Clipping images with patches
Image

Many ways to plot images

Many ways to plot images
Image

Image with masked values

Image with masked values
Image

Image nonuniform

Image nonuniform
Image

Blend transparency with color in 2D images

Blend transparency with color in 2D images
Image

Modifying the coordinate formatter

Modifying the coordinate formatter
Image

Interpolations for imshow

Interpolations for imshow
Image

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data
Image

Multiple images with one colorbar

Multiple images with one colorbar
Image

pcolor images

pcolor images
Image

pcolormesh grids and shading

pcolormesh grids and shading
Image

pcolormesh

pcolormesh
Image

Streamplot

Streamplot
Image

QuadMesh Demo

QuadMesh Demo
Image

Advanced quiver and quiverkey functions

Advanced quiver and quiverkey functions
Image

Quiver Simple Demo

Quiver Simple Demo
Image

Shading example

Shading example
Image

Spectrogram

Spectrogram
Image

Spy Demos

Spy Demos
Image

Tricontour Demo

Tricontour Demo
Image

Tricontour Smooth Delaunay

Tricontour Smooth Delaunay
Image

Tricontour Smooth User

Tricontour Smooth User
Image

Trigradient Demo

Trigradient Demo
Image

Triinterp Demo

Triinterp Demo
Image

Tripcolor Demo

Tripcolor Demo
Image

Triplot Demo

Triplot Demo
Image

Watermark image

Watermark image
Image

Infinite lines

Infinite lines
Image

Bar chart with individual bar colors

Bar chart with individual bar colors
Image

Bar chart with labels

Bar chart with labels
Image

Stacked bar chart

Stacked bar chart
Image

Grouped bar chart with labels

Grouped bar chart with labels
Image

Horizontal bar chart

Horizontal bar chart
Image

Broken horizontal bars

Broken horizontal bars
Image

Plotting categorical variables

Plotting categorical variables
Image

Plotting the coherence of two signals

Plotting the coherence of two signals
Image

Cross spectral density (CSD)

Cross spectral density (CSD)
Image

Curve with error band

Curve with error band
Image

Errorbar subsampling

Errorbar subsampling
Image

Eventplot demo

Eventplot demo
Image

Filled polygon

Filled polygon
Image

fill_between with transparency

fill_between with transparency
Image

Fill the area between two lines

Fill the area between two lines
Image

Fill the area between two vertical lines

Fill the area between two vertical lines
Image

Bar chart with gradients

Bar chart with gradients
Image

Hat graph

Hat graph
Image

Discrete distribution as horizontal bar chart

Discrete distribution as horizontal bar chart
Image

Dashed line style configuration

Dashed line style configuration
Image

Lines with a ticked patheffect

Lines with a ticked patheffect
Image

Linestyles

Linestyles
Image

Marker reference

Marker reference
Image

Markevery Demo

Markevery Demo
Image

Multicolored lines

Multicolored lines
Image

Mapping marker properties to multivariate data

Mapping marker properties to multivariate data
Image

Power spectral density (PSD)

Power spectral density (PSD)
Image

Scatter Demo2

Scatter Demo2
Image

Marker examples

Marker examples
Image

Scatter plot with a legend

Scatter plot with a legend
Image

Line plot

Line plot
Image

Shade regions defined by a logical mask using fill_between

Shade regions defined by a logical mask using fill_between
Image

Stackplots and streamgraphs

Stackplots and streamgraphs
Image

Stairs Demo

Stairs Demo
Image

Timeline with lines, dates, and text

Timeline with lines, dates, and text
Image

hlines and vlines

hlines and vlines
Image

Cross- and auto-correlation

Cross- and auto-correlation
Image

Anchored Artists

Anchored Artists
Image

Identify whether artists intersect

Identify whether artists intersect
Image

Manual Contour

Manual Contour
Image

Coords Report

Coords Report
Image

Custom projection

Custom projection
Image

AGG filter

AGG filter
Image

Ribbon box

Ribbon box
Image

Add lines directly to a figure

Add lines directly to a figure
Image

Findobj Demo

Findobj Demo
Image

Building histograms using Rectangles and PolyCollections

Building histograms using Rectangles and PolyCollections
Image

Plotting with keywords

Plotting with keywords
Image

Multiprocessing

Multiprocessing
Image

Packed-bubble chart

Packed-bubble chart
Image

Patheffect Demo

Patheffect Demo
Image

Rasterization for vector graphics

Rasterization for vector graphics
Image

TickedStroke patheffect

TickedStroke patheffect
Image

Zorder Demo

Zorder Demo
Image

Clip the data to the axes view limits

Clip the data to the axes view limits
Image

Custom hillshading in a 3D surface plot

Custom hillshading in a 3D surface plot
Image

3D plot projection types

3D plot projection types
Image

3D stem

3D stem
Image

3D surface (colormap)

3D surface (colormap)
Image

3D wireframe plots in one direction

3D wireframe plots in one direction
Image

Bar of pie

Bar of pie
Image

Nested pie charts

Nested pie charts
Image

A pie and a donut with labels

A pie and a donut with labels
Image

Pie charts

Pie charts
Image

Polar plot

Polar plot
Image

Loglog aspect

Loglog aspect
Image

Log scale

Log scale
Image

Logit scale

Logit scale
Image

Exploring normalizations

Exploring normalizations
Image

Scales overview

Scales overview
Image

Symlog scale

Symlog scale
Image

Arrow guide

Arrow guide
Image

Line, Poly and RegularPoly Collection with autoscaling

Line, Poly and RegularPoly Collection with autoscaling
Image

Compound path

Compound path
Image

Dolphins

Dolphins
Image

Mmh Donuts!!!

Mmh Donuts!!!
Image

Ellipse with orientation arrow demo

Ellipse with orientation arrow demo
Image

Ellipse Collection

Ellipse Collection
Image

Ellipse Demo

Ellipse Demo
Image

Drawing fancy boxes

Drawing fancy boxes
Image

Hatch style reference

Hatch style reference
Image

Plot multiple lines using a LineCollection

Plot multiple lines using a LineCollection
Image

Circles, Wedges and Polygons

Circles, Wedges and Polygons
Image

PathPatch object

PathPatch object
Image

Bezier curve

Bezier curve
Image

Integral as the area under a curve

Integral as the area under a curve
Image

Stock prices over 32 years

Stock prices over 32 years
Image

Hillshading

Hillshading
Image

Anscombe's quartet

Anscombe's quartet
Image

Ishikawa Diagram

Ishikawa Diagram
Image

Radar chart (aka spider or star chart)

Radar chart (aka spider or star chart)
Image

Topographic hillshading

Topographic hillshading
Image

Centered spines with arrows

Centered spines with arrows
Image

Multiple y-axis with Spines

Multiple y-axis with Spines
Image

Spines

Spines
Image

Dropped spines

Dropped spines
Image

Artist customization in box plots

Artist customization in box plots
Image

Box plots with custom fill colors

Box plots with custom fill colors
Image

Boxplots

Boxplots
Image

Box plot vs. violin plot comparison

Box plot vs. violin plot comparison
Image

Separate calculation and plotting of boxplots

Separate calculation and plotting of boxplots
Image

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset
Image

Violin plot customization

Violin plot customization
Image

Errorbar function

Errorbar function
Image

Different ways of specifying error bars

Different ways of specifying error bars
Image

Including upper and lower limits in error bars

Including upper and lower limits in error bars
Image

Create boxes from error bars using PatchCollection

Create boxes from error bars using PatchCollection
Image

Hexagonal binned plot

Hexagonal binned plot
Image

Histograms

Histograms
Image

Bihistogram

Bihistogram
Image

Demo of the histogram function's different histtype settings

Demo of the histogram function's different histtype settings
Image

The histogram (hist) function with multiple data sets

The histogram (hist) function with multiple data sets
Image

Histogram bins, density, and weight

Histogram bins, density, and weight
Image

Multiple histograms side by side

Multiple histograms side by side
Image

Time Series Histogram

Time Series Histogram
Image

Violin plot basics

Violin plot basics
Image

Bayesian Methods for Hackers style sheet

Bayesian Methods for Hackers style sheet
Image

Dark background style sheet

Dark background style sheet
Image

FiveThirtyEight style sheet

FiveThirtyEight style sheet
Image

ggplot style sheet

ggplot style sheet
Image

Grayscale style sheet

Grayscale style sheet
Image

Petroff10 style sheet

Petroff10 style sheet
Image

Style sheets reference

Style sheets reference
Image

Align labels and titles

Align labels and titles
Image

Programmatically control subplot adjustment

Programmatically control subplot adjustment
Image

Axes box aspect

Axes box aspect
Image

Axes Demo

Axes Demo
Image

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges
Image

Axes properties

Axes properties
Image

Draw regions that span an Axes

Draw regions that span an Axes
Image

Equal axis aspect ratio

Equal axis aspect ratio
Image

Axis label position

Axis label position
Image

Broken axis

Broken axis
Image

Resize Axes with constrained layout

Resize Axes with constrained layout
Image

Resize Axes with tight layout

Resize Axes with tight layout
Image

Different scales on the same Axes

Different scales on the same Axes
Image

Figure size in different units

Figure size in different units
Image

Figure labels: suptitle, supxlabel, supylabel

Figure labels: suptitle, supxlabel, supylabel
Image

Adjacent subplots

Adjacent subplots
Image

Combine two subplots using subplots and GridSpec

Combine two subplots using subplots and GridSpec
Image

Inverted axis

Inverted axis
Image

Secondary Axis

Secondary Axis
Image

Figure subfigures

Figure subfigures
Image

Multiple subplots

Multiple subplots
Image

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots
Image

Plots with different scales

Plots with different scales
Image

Zoom region inset Axes

Zoom region inset Axes
Image

Accented text

Accented text
Image

Align y-labels

Align y-labels
Image

Scale invariant angle label

Scale invariant angle label
Image

Angle annotations on bracket arrows

Angle annotations on bracket arrows
Image

Annotate transform

Annotate transform
Image

Annotating a plot

Annotating a plot
Image

Annotate plots

Annotate plots
Image

Compose custom legends

Compose custom legends
Image

Date tick labels

Date tick labels
Image

AnnotationBbox demo

AnnotationBbox demo
Image

Using a text as a Path

Using a text as a Path
Image

Format ticks using engineering notation

Format ticks using engineering notation
Image

Annotation arrow style reference

Annotation arrow style reference
Image

Figure legend demo

Figure legend demo
Image

Configure the font family

Configure the font family
Image

Using ttf font files

Using ttf font files
Image

Font table

Font table
Image

Legend using pre-defined labels

Legend using pre-defined labels
Image

Legend Demo

Legend Demo
Image

Artist within an artist

Artist within an artist
Image

Mathtext

Mathtext
Image

Math fontfamily

Math fontfamily
Image

Multiline

Multiline
Image

Placing text boxes

Placing text boxes
Image

Render math equations using TeX

Render math equations using TeX
Image

Text alignment

Text alignment
Image

Text rotation angle in data coordinates

Text rotation angle in data coordinates
Image

Title positioning

Title positioning
Image

Text watermark

Text watermark
Image

Automatically setting tick positions

Automatically setting tick positions
Image

Center labels between ticks

Center labels between ticks
Image

Colorbar Tick Labelling

Colorbar Tick Labelling
Image

Custom Ticker

Custom Ticker
Image

Format date ticks using ConciseDateFormatter

Format date ticks using ConciseDateFormatter
Image

Date Demo Convert

Date Demo Convert
Image

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules
Image

Date tick locators and formatters

Date tick locators and formatters
Image

Custom tick formatter for time series

Custom tick formatter for time series
Image

Date precision and epochs

Date precision and epochs
Image

Dollar ticks

Dollar ticks
Image

SI prefixed offsets and natural order of magnitudes

SI prefixed offsets and natural order of magnitudes
Image

Major and minor ticks

Major and minor ticks
Image

Multilevel (nested) ticks

Multilevel (nested) ticks
Image

The default tick formatter

The default tick formatter
Image

Tick locators

Tick locators
Image

Set default y-axis tick labels on the right

Set default y-axis tick labels on the right
Image

Setting tick labels from a list of values

Setting tick labels from a list of values
Image

Move x-axis tick labels to the top

Move x-axis tick labels to the top
Image

Rotated tick labels

Rotated tick labels
Image

Fixing too many ticks

Fixing too many ticks
Image

Annotation with units

Annotation with units
Image

Artist tests

Artist tests
Image

Bar demo with units

Bar demo with units
Image

Group barchart with units

Group barchart with units
Image

Evans test

Evans test
Image

Radian ticks

Radian ticks
Image

Inches and centimeters

Inches and centimeters
Image

Unit handling

Unit handling
Image

pyplot with GTK3

pyplot with GTK3
Image

pyplot with GTK4

pyplot with GTK4
Image

SVG Tooltip

SVG Tooltip
Image

Simple Legend02

Simple Legend02
Image

Annotated cursor

Annotated cursor
Image

Buttons

Buttons
Image

Check buttons

Check buttons
Image

Cursor

Cursor
Image

Lasso Selector

Lasso Selector
Image

Mouse Cursor

Mouse Cursor
Image

Multicursor

Multicursor
Image

Select indices from a collection using polygon selector

Select indices from a collection using polygon selector
Image

Polygon Selector

Polygon Selector
Image

Image scaling using a RangeSlider

Image scaling using a RangeSlider
Image

Slider

Slider
Image

Snap sliders to discrete values

Snap sliders to discrete values
Image

Span Selector

Span Selector
Image

Textbox

Textbox
Image

bar3d(x, y, z, dx, dy, dz)

bar3d(x, y, z, dx, dy, dz)
Image

fill_between(x1, y1, z1, x2, y2, z2)

fill_between(x1, y1, z1, x2, y2, z2)
Image

plot(xs, ys, zs)

plot(xs, ys, zs)
Image

quiver(X, Y, Z, U, V, W)

quiver(X, Y, Z, U, V, W)
Image

scatter(xs, ys, zs)

scatter(xs, ys, zs)
Image

stem(x, y, z)

stem(x, y, z)
Image

plot_surface(X, Y, Z)

plot_surface(X, Y, Z)
Image

plot_trisurf(x, y, z)

plot_trisurf(x, y, z)
Image

voxels([x, y, z], filled)

voxels([x, y, z], filled)
Image

plot_wireframe(X, Y, Z)

plot_wireframe(X, Y, Z)
Image

barbs(X, Y, U, V)

barbs(X, Y, U, V)
Image

contour(X, Y, Z)

contour(X, Y, Z)
Image

contourf(X, Y, Z)

contourf(X, Y, Z)
Image

imshow(Z)

imshow(Z)
Image

pcolormesh(X, Y, Z)

pcolormesh(X, Y, Z)
Image

quiver(X, Y, U, V)

quiver(X, Y, U, V)
Image

streamplot(X, Y, U, V)

streamplot(X, Y, U, V)
Image

bar(x, height)

bar(x, height)
Image

fill_between(x, y1, y2)

fill_between(x, y1, y2)
Image

plot(x, y)

plot(x, y)
Image

scatter(x, y)

scatter(x, y)
Image

stackplot(x, y)

stackplot(x, y)
Image

stairs(values)

stairs(values)
Image

stem(x, y)

stem(x, y)
Image

boxplot(X)

boxplot(X)
Image

ecdf(x)

ecdf(x)
Image

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)
Image

eventplot(D)

eventplot(D)
Image

hexbin(x, y, C)

hexbin(x, y, C)
Image

hist2d(x, y)

hist2d(x, y)
Image

hist(x)

hist(x)
Image

pie(x)

pie(x)
Image

violinplot(D)

violinplot(D)
Image

tricontour(x, y, z)

tricontour(x, y, z)
Image

tricontourf(x, y, z)

tricontourf(x, y, z)
Image

tripcolor(x, y, z)

tripcolor(x, y, z)
Image

triplot(x, y)

triplot(x, y)
Image

Artist tutorial

Artist tutorial
Image

The Lifecycle of a Plot

The Lifecycle of a Plot
Image

Animations using Matplotlib

Animations using Matplotlib
Image

Faster rendering by using blitting

Faster rendering by using blitting
Image

Styling with cycler

Styling with cycler
Image

Path Tutorial

Path Tutorial
Image

Transformations Tutorial

Transformations Tutorial
Image

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure
Image

Autoscaling Axis

Autoscaling Axis
Image

Axis scales

Axis scales
Image

Axis ticks

Axis ticks
Image

Plotting dates and strings

Plotting dates and strings
Image

Placing colorbars

Placing colorbars
Image

Constrained layout guide

Constrained layout guide
Image

Legend guide

Legend guide
Image

Tight layout guide

Tight layout guide
Image

Customized Colorbars Tutorial

Customized Colorbars Tutorial
Image

Creating Colormaps in Matplotlib

Creating Colormaps in Matplotlib
Image

Colormap normalization

Colormap normalization
Image

Choosing Colormaps in Matplotlib

Choosing Colormaps in Matplotlib
Image

Specifying colors

Specifying colors
Image

Quick start guide

Quick start guide
Image

Annotations

Annotations
Image

Text in Matplotlib

Text in Matplotlib