VOOZH about

URL: https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.show.html

⇱ matplotlib.pyplot.show — Matplotlib 3.11.0 documentation


matplotlib.pyplot.show#

matplotlib.pyplot.show(*, block=None)[source]#

Display all open figures.

Parameters:
blockbool, optional

Whether to wait for all figures to be closed before returning.

If True block and run the GUI main loop until all figure windows are closed.

If False ensure that all figure windows are displayed and return immediately. In this case, you are responsible for ensuring that the event loop is running to have responsive figures.

Defaults to True in non-interactive mode and to False in interactive mode (see pyplot.isinteractive).

See also

ion

Enable interactive mode, which shows / updates the figure after every plotting command, so that calling show() is not necessary.

ioff

Disable interactive mode.

savefig

Save the figure to an image file instead of showing it on screen.

Notes

Saving figures to file and showing a window at the same time

If you want an image file as well as a user interface window, use pyplot.savefig before pyplot.show. At the end of (a blocking) show() the figure is closed and thus unregistered from pyplot. Calling pyplot.savefig afterwards would save a new and thus empty figure. This limitation of command order does not apply if the show is non-blocking or if you keep a reference to the figure and use Figure.savefig.

Auto-show in jupyter notebooks

The jupyter backends (activated via %matplotlib inline, %matplotlib notebook, or %matplotlib widget), call show() at the end of every cell by default. Thus, you usually don't have to call it explicitly there.

Examples using matplotlib.pyplot.show#

👁 Image

Dashed line style configuration

Dashed line style configuration
👁 Image

Markevery Demo

Markevery Demo
👁 Image

Marker reference

Marker reference
👁 Image

Infinite lines

Infinite lines
👁 Image

Multicolored lines

Multicolored lines
👁 Image

Lines with a ticked patheffect

Lines with a ticked patheffect
👁 Image

Grouped bar chart with labels

Grouped bar chart with labels
👁 Image

Bar chart with labels

Bar chart with labels
👁 Image

Stacked bar chart

Stacked bar chart
👁 Image

Bar chart with individual bar colors

Bar chart with individual bar colors
👁 Image

Bar chart with gradients

Bar chart with gradients
👁 Image

Horizontal bar chart

Horizontal bar chart
👁 Image

Discrete distribution as horizontal bar chart

Discrete distribution as horizontal bar chart
👁 Image

Broken horizontal bars

Broken horizontal bars
👁 Image

Scatter Demo2

Scatter Demo2
👁 Image

Mapping marker properties to multivariate data

Mapping marker properties to multivariate data
👁 Image

Marker examples

Marker examples
👁 Image

Scatter plot with a legend

Scatter plot with a legend
👁 Image

Scatter plot with masked values

Scatter plot with masked values
👁 Image

Scatter plot with histograms

Scatter plot with histograms
👁 Image

Stairs Demo

Stairs Demo
👁 Image

Filled polygon

Filled polygon
👁 Image

fill_between with transparency

fill_between with transparency
👁 Image

Fill the area between two vertical lines

Fill the area between two vertical lines
👁 Image

Stackplots and streamgraphs

Stackplots and streamgraphs
👁 Image

EventCollection Demo

EventCollection Demo
👁 Image

Eventplot demo

Eventplot demo
👁 Image

Timeline with lines, dates, and text

Timeline with lines, dates, and text
👁 Image

hlines and vlines

hlines and vlines
👁 Image

Shade regions defined by a logical mask using fill_between

Shade regions defined by a logical mask using fill_between
👁 Image

Plotting categorical variables

Plotting categorical variables
👁 Image

Plotting masked and NaN values

Plotting masked and NaN values
👁 Image

Spectrum representations

Spectrum representations
👁 Image

Many ways to plot images

Many ways to plot images
👁 Image

Image with masked values

Image with masked values
👁 Image

Multiple images with one colorbar

Multiple images with one colorbar
👁 Image

Modifying the coordinate formatter

Modifying the coordinate formatter
👁 Image

Image resampling

Image resampling
👁 Image

Interpolations for imshow

Interpolations for imshow
👁 Image

Layer images with alpha blending

Layer images with alpha blending
👁 Image

Blend transparency with color in 2D images

Blend transparency with color in 2D images
👁 Image

Shading example

Shading example
👁 Image

Clipping images with patches

Clipping images with patches
👁 Image

Placing images, preserving relative sizes

Placing images, preserving relative sizes
👁 Image

pcolor images

pcolor images
👁 Image

pcolormesh grids and shading

pcolormesh grids and shading
👁 Image

Image nonuniform

Image nonuniform
👁 Image

QuadMesh Demo

QuadMesh Demo
👁 Image

Triplot Demo

Triplot Demo
👁 Image

Tripcolor Demo

Tripcolor Demo
👁 Image

Tricontour Demo

Tricontour Demo
👁 Image

Tricontour Smooth User

Tricontour Smooth User
👁 Image

Tricontour Smooth Delaunay

Tricontour Smooth Delaunay
👁 Image

Trigradient Demo

Trigradient Demo
👁 Image

Triinterp Demo

Triinterp Demo
👁 Image

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data
👁 Image

Contour Demo

Contour Demo
👁 Image

Contour Label Demo

Contour Label Demo
👁 Image

Contourf demo

Contourf demo
👁 Image

Contour image

Contour image
👁 Image

Contourf and log color scale

Contourf and log color scale
👁 Image

Contourf hatching

Contourf hatching
👁 Image

Contour corner mask

Contour corner mask
👁 Image

Contouring the solution space of optimizations

Contouring the solution space of optimizations
👁 Image

Quiver Simple Demo

Quiver Simple Demo
👁 Image

Advanced quiver and quiverkey functions

Advanced quiver and quiverkey functions
👁 Image

Interactive adjustment of colormap range

Interactive adjustment of colormap range
👁 Image

Colormap normalizations

Colormap normalizations
👁 Image

Colormap normalizations SymLogNorm

Colormap normalizations SymLogNorm
👁 Image

Annotated heatmap

Annotated heatmap
👁 Image

Affine transform of an image

Affine transform of an image
👁 Image

Visualize matrices with matshow

Visualize matrices with matshow
👁 Image

Spectrogram

Spectrogram
👁 Image

BboxImage Demo

BboxImage Demo
👁 Image

Figimage Demo

Figimage Demo
👁 Image

Watermark image

Watermark image
👁 Image

Errorbar function

Errorbar function
👁 Image

Different ways of specifying error bars

Different ways of specifying error bars
👁 Image

Errorbar subsampling

Errorbar subsampling
👁 Image

Errorbar limit selection

Errorbar limit selection
👁 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

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset
👁 Image

Curve with error band

Curve with error band
👁 Image

Demo of the histogram function's different histtype settings

Demo of the histogram function's different histtype settings
👁 Image

Histogram bins, density, and weight

Histogram bins, density, and weight
👁 Image

The histogram (hist) function with multiple data sets

The histogram (hist) function with multiple data sets
👁 Image

Multiple histograms side by side

Multiple histograms side by side
👁 Image

Bihistogram

Bihistogram
👁 Image

Cumulative distributions

Cumulative distributions
👁 Image

Hexagonal binned plot

Hexagonal binned plot
👁 Image

Time Series Histogram

Time Series Histogram
👁 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

Separate calculation and plotting of boxplots

Separate calculation and plotting of boxplots
👁 Image

Box plot vs. violin plot comparison

Box plot vs. violin plot comparison
👁 Image

Violin plot basics

Violin plot basics
👁 Image

Violin plot customization

Violin plot customization
👁 Image

Cross- and auto-correlation

Cross- and auto-correlation
👁 Image

Power spectral density (PSD)

Power spectral density (PSD)
👁 Image

Cross spectral density (CSD)

Cross spectral density (CSD)
👁 Image

Plotting the coherence of two signals

Plotting the coherence of two signals
👁 Image

Nested pie charts

Nested pie charts
👁 Image

A pie and a donut with labels

A pie and a donut with labels
👁 Image

Labeling pie charts

Labeling pie charts
👁 Image

Bar chart on polar axis

Bar chart on polar axis
👁 Image

Error bar rendering on polar axis

Error bar rendering on polar axis
👁 Image

Polar legend

Polar legend
👁 Image

Scatter plot on polar axis

Scatter plot on polar axis
👁 Image

Multiple subplots

Multiple subplots
👁 Image

Create multiple subplots using plt.subplots

Create multiple subplots using plt.subplots
👁 Image

GridSpec with variable sizes and spacing

GridSpec with variable sizes and spacing
👁 Image

Gridspec for multi-column/row subplot layouts

Gridspec for multi-column/row subplot layouts
👁 Image

Nested Gridspecs

Nested Gridspecs
👁 Image

Combine two subplots using subplots and GridSpec

Combine two subplots using subplots and GridSpec
👁 Image

subplot2grid

subplot2grid
👁 Image

Resize Axes with constrained layout

Resize Axes with constrained layout
👁 Image

Resize Axes with tight layout

Resize Axes with tight layout
👁 Image

Subplots spacings and margins

Subplots spacings and margins
👁 Image

Programmatically control subplot adjustment

Programmatically control subplot adjustment
👁 Image

Adjacent subplots

Adjacent subplots
👁 Image

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges
👁 Image

Axes box aspect

Axes box aspect
👁 Image

Equal axis aspect ratio

Equal axis aspect ratio
👁 Image

Manage multiple figures in pyplot

Manage multiple figures in pyplot
👁 Image

Figure size in different units

Figure size in different units
👁 Image

Figure subfigures

Figure subfigures
👁 Image

Shared axis

Shared axis
👁 Image

Inverted axis

Inverted axis
👁 Image

Plots with different scales

Plots with different scales
👁 Image

Different scales on the same Axes

Different scales on the same Axes
👁 Image

Multiple y-axis with Spines

Multiple y-axis with Spines
👁 Image

Twin Axes with delta_zorder

Twin Axes with delta_zorder
👁 Image

Secondary Axis

Secondary Axis
👁 Image

Align labels and titles

Align labels and titles
👁 Image

Axis label position

Axis label position
👁 Image

Axes properties

Axes properties
👁 Image

Figure labels: suptitle, supxlabel, supylabel

Figure labels: suptitle, supxlabel, supylabel
👁 Image

Axes zoom effect

Axes zoom effect
👁 Image

Zoom region inset Axes

Zoom region inset Axes
👁 Image

Broken axis

Broken axis
👁 Image

Geographic Projections

Geographic Projections
👁 Image

Draw regions that span an Axes

Draw regions that span an Axes
👁 Image

Automatically setting tick positions

Automatically setting tick positions
👁 Image

Tick locators

Tick locators
👁 Image

Major and minor ticks

Major and minor ticks
👁 Image

Move x/y-axis ticks and labels on top and right

Move x/y-axis ticks and labels on top and right
👁 Image

Center labels between ticks

Center labels between ticks
👁 Image

Rotated tick labels

Rotated tick labels
👁 Image

Multilevel (nested) ticks

Multilevel (nested) ticks
👁 Image

The default tick formatter

The default tick formatter
👁 Image

Tick formatters

Tick formatters
👁 Image

Custom Ticker

Custom Ticker
👁 Image

Dollar ticks

Dollar ticks
👁 Image

Format ticks using engineering notation

Format ticks using engineering notation
👁 Image

SI prefixed offsets and natural order of magnitudes

SI prefixed offsets and natural order of magnitudes
👁 Image

Setting tick labels from a list of values

Setting tick labels from a list of values
👁 Image

Date tick labels

Date tick labels
👁 Image

Format date ticks using ConciseDateFormatter

Format date ticks using ConciseDateFormatter
👁 Image

Date converter demo

Date converter demo
👁 Image

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules
👁 Image

Custom tick formatter for time series

Custom tick formatter for time series
👁 Image

Date precision and epochs

Date precision and epochs
👁 Image

Colorbar Tick labelling

Colorbar Tick labelling
👁 Image

Customizing figure and axes appearance

Customizing figure and axes appearance
👁 Image

Fixing too many ticks

Fixing too many ticks
👁 Image

Scales overview

Scales overview
👁 Image

Asinh scale

Asinh scale
👁 Image

Loglog aspect

Loglog aspect
👁 Image

Custom scale

Custom scale
👁 Image

Logit scale

Logit scale
👁 Image

Exploring normalizations

Exploring normalizations
👁 Image

Symlog scale

Symlog scale
👁 Image

Spine placement

Spine placement
👁 Image

Dropped spines

Dropped spines
👁 Image

Centered spines with arrows

Centered spines with arrows
👁 Image

Text properties

Text properties
👁 Image

Controlling style of text and labels using a dictionary

Controlling style of text and labels using a dictionary
👁 Image

Text alignment

Text alignment
👁 Image

Multiline text

Multiline text
👁 Image

Auto-wrap text

Auto-wrap text
👁 Image

Text rotation mode

Text rotation mode
👁 Image

Text rotation angle in data coordinates

Text rotation angle in data coordinates
👁 Image

Concatenate text objects with different properties

Concatenate text objects with different properties
👁 Image

Using a text as a Path

Using a text as a Path
👁 Image

Annotating a plot

Annotating a plot
👁 Image

Annotate plots

Annotate plots
👁 Image

Annotate polar plots

Annotate polar plots
👁 Image

Angle annotations on bracket arrows

Angle annotations on bracket arrows
👁 Image

Annotation arrow style reference

Annotation arrow style reference
👁 Image

Styling text boxes

Styling text boxes
👁 Image

Placing text boxes

Placing text boxes
👁 Image

Labelling subplots

Labelling subplots
👁 Image

Artists as annotations

Artists as annotations
👁 Image

Scale invariant angle label

Scale invariant angle label
👁 Image

Legend Demo

Legend Demo
👁 Image

Legend using pre-defined labels

Legend using pre-defined labels
👁 Image

Compose custom legends

Compose custom legends
👁 Image

Figure legend demo

Figure legend demo
👁 Image

Accented text

Accented text
👁 Image

The difference between \dfrac and \frac

The difference between \dfrac and \frac
👁 Image

Configure the font family

Configure the font family
👁 Image

Using ttf font files

Using ttf font files
👁 Image

Fonts demo (object-oriented style)

Fonts demo (object-oriented style)
👁 Image

Fonts demo (keyword arguments)

Fonts demo (keyword arguments)
👁 Image

Convert texts to images

Convert texts to images
👁 Image

Mathematical expressions

Mathematical expressions
👁 Image

Math fontfamily

Math fontfamily
👁 Image

Render math equations using TeX

Render math equations using TeX
👁 Image

Unicode minus

Unicode minus
👁 Image

Usetex text baseline

Usetex text baseline
👁 Image

Usetex font effects

Usetex font effects
👁 Image

Artist within an artist

Artist within an artist
👁 Image

Title positioning

Title positioning
👁 Image

Text watermark

Text watermark
👁 Image

Arrow guide

Arrow guide
👁 Image

Reference for Matplotlib artists

Reference for Matplotlib artists
👁 Image

Line, Poly and RegularPoly Collection

Line, Poly and RegularPoly Collection
👁 Image

Compound path

Compound path
👁 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

Hatchcolor Demo

Hatchcolor Demo
👁 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

Scatter plot

Scatter plot
👁 Image

Color by y-value

Color by y-value
👁 Image

Colors in the default property cycle

Colors in the default property cycle
👁 Image

Named color sequences

Named color sequences
👁 Image

Histogram as colorbar

Histogram as colorbar
👁 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

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

Petroff style sheets

Petroff style sheets
👁 Image

Solarized Light stylesheet

Solarized Light stylesheet
👁 Image

Style sheets reference

Style sheets reference
👁 Image

Two subplots using pyplot

Two subplots using pyplot
👁 Image

Plot 2D data on 3D plot

Plot 2D data on 3D plot
👁 Image

Demo of 3D bar charts

Demo of 3D bar charts
👁 Image

Clip the data to the axes view limits

Clip the data to the axes view limits
👁 Image

Create 2D bar graphs in different planes

Create 2D bar graphs in different planes
👁 Image

3D box surface plot

3D box surface plot
👁 Image

Plot contour (level) curves in 3D

Plot contour (level) curves in 3D
👁 Image

Plot contour (level) curves in 3D using the extend3d option

Plot contour (level) curves in 3D using the extend3d option
👁 Image

Project contour profiles onto a graph

Project contour profiles onto a graph
👁 Image

Filled contours

Filled contours
👁 Image

Project filled contour onto a graph

Project filled contour onto a graph
👁 Image

Custom hillshading in a 3D surface plot

Custom hillshading in a 3D surface plot
👁 Image

3D errorbars

3D errorbars
👁 Image

Fill between 3D lines

Fill between 3D lines
👁 Image

Fill under 3D line graphs

Fill under 3D line graphs
👁 Image

Create 3D histogram of 2D data

Create 3D histogram of 2D data
👁 Image

2D images in 3D

2D images in 3D
👁 Image

Intersecting planes

Intersecting planes
👁 Image

Parametric curve

Parametric curve
👁 Image

Lorenz attractor

Lorenz attractor
👁 Image

2D and 3D Axes in same figure

2D and 3D Axes in same figure
👁 Image

Automatic text offsetting

Automatic text offsetting
👁 Image

Draw flat objects in 3D plot

Draw flat objects in 3D plot
👁 Image

Generate 3D polygons

Generate 3D polygons
👁 Image

3D plot projection types

3D plot projection types
👁 Image

3D quiver plot

3D quiver plot
👁 Image

Rotating a 3D plot

Rotating a 3D plot
👁 Image

Scales on 3D (Log, Symlog, etc.)

Scales on 3D (Log, Symlog, etc.)
👁 Image

3D scatterplot

3D scatterplot
👁 Image

3D plots as subplots

3D plots as subplots
👁 Image

3D surface (colormap)

3D surface (colormap)
👁 Image

3D surface (solid color)

3D surface (solid color)
👁 Image

3D surface (checkerboard)

3D surface (checkerboard)
👁 Image

3D surface with polar coordinates

3D surface with polar coordinates
👁 Image

Text annotations in 3D

Text annotations in 3D
👁 Image

Triangular 3D contour plot

Triangular 3D contour plot
👁 Image

Triangular 3D filled contour plot

Triangular 3D filled contour plot
👁 Image

Triangular 3D surfaces

Triangular 3D surfaces
👁 Image

More triangular 3D surfaces

More triangular 3D surfaces
👁 Image

Primary 3D view planes

Primary 3D view planes
👁 Image

3D voxel / volumetric plot

3D voxel / volumetric plot
👁 Image

3D voxel plot of the NumPy logo

3D voxel plot of the NumPy logo
👁 Image

3D voxel / volumetric plot with RGB colors

3D voxel / volumetric plot with RGB colors
👁 Image

3D voxel / volumetric plot with cylindrical coordinates

3D voxel / volumetric plot with cylindrical coordinates
👁 Image

3D wireframe plot

3D wireframe plot
👁 Image

Animate a 3D wireframe plot

Animate a 3D wireframe plot
👁 Image

3D wireframe plots in one direction

3D wireframe plots in one direction
👁 Image

Anchored Direction Arrow

Anchored Direction Arrow
👁 Image

Axes divider

Axes divider
👁 Image

Demo Axes Grid

Demo Axes Grid
👁 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_locator.inset_axes

Control the position and size of a colorbar with inset_locator.inset_axes
👁 Image

Per-row or per-column colorbars

Per-row or per-column colorbars
👁 Image

Axes with a fixed physical size

Axes with a fixed physical size
👁 Image

ImageGrid cells with a fixed aspect ratio

ImageGrid cells with a fixed aspect ratio
👁 Image

Inset locator demo

Inset locator demo
👁 Image

Inset locator demo 2

Inset locator demo 2
👁 Image

Make room for ylabel using axes_grid

Make room for ylabel using axes_grid
👁 Image

Parasite Simple

Parasite Simple
👁 Image

Parasite Simple2

Parasite Simple2
👁 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

Simple Axes Divider 1

Simple Axes Divider 1
👁 Image

Simple axes divider 3

Simple axes divider 3
👁 Image

Simple ImageGrid

Simple ImageGrid
👁 Image

Simple ImageGrid 2

Simple ImageGrid 2
👁 Image

Simple Axisline4

Simple Axisline4
👁 Image

Axis Direction

Axis Direction
👁 Image

axis_direction demo

axis_direction demo
👁 Image

Axis line styles

Axis line styles
👁 Image

Curvilinear grid demo

Curvilinear grid demo
👁 Image

Demo CurveLinear Grid2

Demo CurveLinear Grid2
👁 Image

floating_axes features

floating_axes features
👁 Image

floating_axis demo

floating_axis demo
👁 Image

Parasite Axes demo

Parasite Axes demo
👁 Image

Parasite axis demo

Parasite axis demo
👁 Image

Ticklabel alignment

Ticklabel alignment
👁 Image

Ticklabel direction

Ticklabel direction
👁 Image

Simple axis direction

Simple axis direction
👁 Image

Simple axis tick label and tick directions

Simple axis tick label and tick directions
👁 Image

Simple axis pad

Simple axis pad
👁 Image

Custom spines with axisartist

Custom spines with axisartist
👁 Image

Simple Axisline

Simple Axisline
👁 Image

Simple Axisline3

Simple Axisline3
👁 Image

Basic animated line plot

Basic animated line plot
👁 Image

Animated histogram

Animated histogram
👁 Image

The Bayes update

The Bayes update
👁 Image

The double pendulum problem

The double pendulum problem
👁 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

Rain simulation

Rain simulation
👁 Image

Animated 3D random walk

Animated 3D random walk
👁 Image

Animated scatter saved as GIF

Animated scatter saved as GIF
👁 Image

Oscilloscope

Oscilloscope
👁 Image

Matplotlib unchained

Matplotlib unchained
👁 Image

Annotated cursor

Annotated cursor
👁 Image

Check buttons

Check buttons
👁 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

Radio Buttons

Radio Buttons
👁 Image

Radio Buttons Grid

Radio Buttons Grid
👁 Image

Image scaling using a RangeSlider

Image scaling using a RangeSlider
👁 Image

Rectangle and ellipse selectors

Rectangle and ellipse selectors
👁 Image

Snap sliders to discrete values

Snap sliders to discrete values
👁 Image

Span Selector

Span Selector
👁 Image

Close event

Close event
👁 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

Interactive functions

Interactive functions
👁 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

Resampling Data

Resampling Data
👁 Image

Trifinder Event Demo

Trifinder Event Demo
👁 Image

Zoom modifies other Axes

Zoom modifies other Axes
👁 Image

mplcvd -- an example of figure hook

mplcvd -- an example of figure hook
👁 Image

pyplot with GTK3

pyplot with GTK3
👁 Image

pyplot with GTK4

pyplot with GTK4
👁 Image

Tool Manager

Tool Manager
👁 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

Ellipse with units

Ellipse with units
👁 Image

Radian ticks

Radian ticks
👁 Image

Inches and centimeters

Inches and centimeters
👁 Image

Unit handling

Unit handling
👁 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

Customize Rc

Customize Rc
👁 Image

Add lines directly to a figure

Add lines directly to a figure
👁 Image

Fill spiral

Fill spiral
👁 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

Matplotlib logo

Matplotlib logo
👁 Image

Multiprocessing

Multiprocessing
👁 Image

Packed-bubble chart

Packed-bubble chart
👁 Image

Patheffect Demo

Patheffect Demo
👁 Image

Set and get properties

Set and get properties
👁 Image

TickedStroke patheffect

TickedStroke patheffect
👁 Image

transforms.offset_copy

transforms.offset_copy
👁 Image

Zorder Demo

Zorder Demo
👁 Image

Anatomy of a figure

Anatomy of a figure
👁 Image

Integral as the area under a curve

Integral as the area under a curve
👁 Image

Shaded & power normalized rendering

Shaded & power normalized rendering
👁 Image

Stock prices over 32 years

Stock prices over 32 years
👁 Image

Hillshading

Hillshading
👁 Image

Anscombe's quartet

Anscombe's quartet
👁 Image

Hinton diagrams

Hinton diagrams
👁 Image

Ishikawa Diagram

Ishikawa Diagram
👁 Image

Left ventricle bullseye

Left ventricle bullseye
👁 Image

MRI with EEG

MRI with EEG
👁 Image

Radar chart (aka spider or star chart)

Radar chart (aka spider or star chart)
👁 Image

The Sankey class

The Sankey class
👁 Image

Long chain of connections using Sankey

Long chain of connections using Sankey
👁 Image

Rankine power cycle

Rankine power cycle
👁 Image

SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections
👁 Image

Topographic hillshading

Topographic hillshading
👁 Image

Pyplot tutorial

Pyplot tutorial
👁 Image

The Lifecycle of a Plot

The Lifecycle of a Plot
👁 Image

Artist tutorial

Artist tutorial
👁 Image

Coding shortcuts

Coding shortcuts
👁 Image

scatter(x, y)

scatter(x, y)
👁 Image

bar(x, height)

bar(x, height)
👁 Image

fill_between(x, y1, y2)

fill_between(x, y1, y2)
👁 Image

stackplot(x, y)

stackplot(x, y)
👁 Image

stairs(values)

stairs(values)
👁 Image

errorbar(x, y, yerr, xerr)

errorbar(x, y, yerr, xerr)
👁 Image

violinplot(D)

violinplot(D)
👁 Image

eventplot(D)

eventplot(D)
👁 Image

hist2d(x, y)

hist2d(x, y)
👁 Image

hexbin(x, y, C)

hexbin(x, y, C)
👁 Image

pcolormesh(X, Y, Z)

pcolormesh(X, Y, Z)
👁 Image

contour(X, Y, Z)

contour(X, Y, Z)
👁 Image

contourf(X, Y, Z)

contourf(X, Y, Z)
👁 Image

barbs(X, Y, U, V)

barbs(X, Y, U, V)
👁 Image

quiver(X, Y, U, V)

quiver(X, Y, U, V)
👁 Image

streamplot(X, Y, U, V)

streamplot(X, Y, U, V)
👁 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

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

Customizing Matplotlib with style sheets and rcParams

Customizing Matplotlib with style sheets and rcParams
👁 Image

Quick start guide

Quick start guide
👁 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

Positioning and orientation of imshow images

Positioning and orientation of imshow images
👁 Image

Path effects guide

Path effects guide
👁 Image

Path Tutorial

Path Tutorial
👁 Image

Transformations Tutorial

Transformations Tutorial
👁 Image

Arranging multiple Axes in a Figure

Arranging multiple Axes in a Figure
👁 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

Text in Matplotlib

Text in Matplotlib
👁 Image

Text properties and layout

Text properties and layout
On this page