Examples#

For an overview of the plotting methods we provide, see Plot types

This page contains example plots. Click on any image to see the full image and source code.

For longer tutorials, see our tutorials page. You can also find external resources and a FAQ in our user guide.

Tagging!

You can also browse the example gallery by tags.

Lines, bars and markers#

Bar color demo

Bar color demo

Bar Label Demo

Bar Label Demo

Stacked bar chart

Stacked bar chart

Grouped bar chart with labels

Grouped bar chart with labels

Horizontal bar chart

Horizontal bar chart

Broken Barh

Broken Barh

CapStyle

CapStyle

Plotting categorical variables

Plotting categorical variables

Plotting the coherence of two signals

Plotting the coherence of two signals

Cross spectral density (CSD)

Cross spectral density (CSD)

Curve with error band

Curve with error band

Errorbar limit selection

Errorbar limit selection

Errorbar subsampling

Errorbar subsampling

EventCollection Demo

EventCollection Demo

Eventplot demo

Eventplot demo

Filled polygon

Filled polygon

Fill Between and Alpha

Fill Between and Alpha

Filling the area between lines

Filling the area between lines

Fill Betweenx Demo

Fill Betweenx Demo

Hatch-filled histograms

Hatch-filled histograms

Bar chart with gradients

Bar chart with gradients

Hat graph

Hat graph

Discrete distribution as horizontal bar chart

Discrete distribution as horizontal bar chart

JoinStyle

JoinStyle

Customizing dashed line styles

Customizing dashed line styles

Lines with a ticked patheffect

Lines with a ticked patheffect

Linestyles

Linestyles

Marker reference

Marker reference

Markevery Demo

Markevery Demo

Plotting masked and NaN values

Plotting masked and NaN values

Multicolored lines

Multicolored lines

Mapping marker properties to multivariate data

Mapping marker properties to multivariate data

Power spectral density (PSD)

Power spectral density (PSD)

Scatter Demo2

Scatter Demo2

Scatter plot with histograms

Scatter plot with histograms

Scatter Masked

Scatter Masked

Marker examples

Marker examples

Scatter plots with a legend

Scatter plots with a legend

Simple Plot

Simple Plot

Shade regions defined by a logical mask using fill_between

Shade regions defined by a logical mask using fill_between

Spectrum representations

Spectrum representations

Stackplots and streamgraphs

Stackplots and streamgraphs

Stairs Demo

Stairs Demo

Stem Plot

Stem Plot

Step Demo

Step Demo

Creating a timeline with lines, dates, and text

Creating a timeline with lines, dates, and text

hlines and vlines

hlines and vlines

Cross- and auto-correlation

Cross- and auto-correlation

Images, contours and fields#

Affine transform of an image

Affine transform of an image

Wind Barbs

Wind Barbs

Barcode

Barcode

Interactive Adjustment of Colormap Range

Interactive Adjustment of Colormap Range

Colormap normalizations

Colormap normalizations

Colormap normalizations SymLogNorm

Colormap normalizations SymLogNorm

Contour Corner Mask

Contour Corner Mask

Contour Demo

Contour Demo

Contour Image

Contour Image

Contour Label Demo

Contour Label Demo

Contourf demo

Contourf demo

Contourf Hatching

Contourf Hatching

Contourf and log color scale

Contourf and log color scale

Contouring the solution space of optimizations

Contouring the solution space of optimizations

BboxImage Demo

BboxImage Demo

Figimage Demo

Figimage Demo

Creating annotated heatmaps

Creating annotated heatmaps

Image antialiasing

Image antialiasing

Clipping images with patches

Clipping images with patches

Many ways to plot images

Many ways to plot images

Image Masked

Image Masked

Image nonuniform

Image nonuniform

Blend transparency with color in 2D images

Blend transparency with color in 2D images

Modifying the coordinate formatter

Modifying the coordinate formatter

Interpolations for imshow

Interpolations for imshow

Contour plot of irregularly spaced data

Contour plot of irregularly spaced data

Layer Images

Layer Images

Visualize matrices with matshow

Visualize matrices with matshow

Multiple images with one colorbar

Multiple images with one colorbar

pcolor images

pcolor images

pcolormesh grids and shading

pcolormesh grids and shading

pcolormesh

pcolormesh

Streamplot

Streamplot

QuadMesh Demo

QuadMesh Demo

Advanced quiver and quiverkey functions

Advanced quiver and quiverkey functions

Quiver Simple Demo

Quiver Simple Demo

Shading example

Shading example

Spectrogram

Spectrogram

Spy Demos

Spy Demos

Tricontour Demo

Tricontour Demo

Tricontour Smooth Delaunay

Tricontour Smooth Delaunay

Tricontour Smooth User

Tricontour Smooth User

Trigradient Demo

Trigradient Demo

Triinterp Demo

Triinterp Demo

Tripcolor Demo

Tripcolor Demo

Triplot Demo

Triplot Demo

Watermark image

Watermark image

Subplots, axes and figures#

Aligning Labels and Titles

Aligning Labels and Titles

Programmatically controlling subplot adjustment

Programmatically controlling subplot adjustment

Axes box aspect

Axes box aspect

Axes Demo

Axes Demo

Controlling view limits using margins and sticky_edges

Controlling view limits using margins and sticky_edges

Axes Props

Axes Props

Axes Zoom Effect

Axes Zoom Effect

axhspan Demo

axhspan Demo

Equal axis aspect ratio

Equal axis aspect ratio

Axis Label Position

Axis Label Position

Broken Axis

Broken Axis

Custom Figure subclasses

Custom Figure subclasses

Resizing Axes with constrained layout

Resizing Axes with constrained layout

Resizing Axes with tight layout

Resizing Axes with tight layout

Different scales on the same Axes

Different scales on the same Axes

Figure size in different units

Figure size in different units

Figure labels: suptitle, supxlabel, supylabel

Figure labels: suptitle, supxlabel, supylabel

Creating adjacent subplots

Creating adjacent subplots

Geographic Projections

Geographic Projections

Combining two subplots using subplots and GridSpec

Combining two subplots using subplots and GridSpec

Using Gridspec to make multi-column/row subplot layouts

Using Gridspec to make multi-column/row subplot layouts

Nested Gridspecs

Nested Gridspecs

Inverted axis

Inverted axis

Managing multiple figures in pyplot

Managing multiple figures in pyplot

Secondary Axis

Secondary Axis

Sharing axis limits and views

Sharing axis limits and views

Shared axis

Shared axis

Figure subfigures

Figure subfigures

Multiple subplots

Multiple subplots

Subplots spacings and margins

Subplots spacings and margins

Creating multiple subplots using plt.subplots

Creating multiple subplots using plt.subplots

Plots with different scales

Plots with different scales

Zoom region inset Axes

Zoom region inset Axes

Statistics#

Percentiles as horizontal bar chart

Percentiles as horizontal bar chart

Artist customization in box plots

Artist customization in box plots

Box plots with custom fill colors

Box plots with custom fill colors

Boxplots

Boxplots

Box plot vs. violin plot comparison

Box plot vs. violin plot comparison

Separate calculation and plotting of boxplots

Separate calculation and plotting of boxplots

Plot a confidence ellipse of a two-dimensional dataset

Plot a confidence ellipse of a two-dimensional dataset

Violin plot customization

Violin plot customization

Errorbar function

Errorbar function

Different ways of specifying error bars

Different ways of specifying error bars

Including upper and lower limits in error bars

Including upper and lower limits in error bars

Creating boxes from error bars using PatchCollection

Creating boxes from error bars using PatchCollection

Hexagonal binned plot

Hexagonal binned plot

Histograms

Histograms

Bihistogram

Bihistogram

Plotting cumulative distributions

Plotting cumulative distributions

Demo of the histogram function's different histtype settings

Demo of the histogram function's different histtype settings

The histogram (hist) function with multiple data sets

The histogram (hist) function with multiple data sets

Histogram bins, density, and weight

Histogram bins, density, and weight

Producing multiple histograms side by side

Producing multiple histograms side by side

Time Series Histogram

Time Series Histogram

Violin plot basics

Violin plot basics

Pie and polar charts#

Pie charts

Pie charts

Bar of pie

Bar of pie

Nested pie charts

Nested pie charts

Labeling a pie and a donut

Labeling a pie and a donut

Bar chart on polar axis

Bar chart on polar axis

Polar plot

Polar plot

Error bar rendering on polar axis

Error bar rendering on polar axis

Polar legend

Polar legend

Scatter plot on polar axis

Scatter plot on polar axis

Text, labels and annotations#

Accented text

Accented text

Align y-labels

Align y-labels

Scale invariant angle label

Scale invariant angle label

Angle annotations on bracket arrows

Angle annotations on bracket arrows

Annotate Transform

Annotate Transform

Annotating a plot

Annotating a plot

Annotating Plots

Annotating Plots

Annotation Polar

Annotation Polar

Arrow Demo

Arrow Demo

Auto-wrapping text

Auto-wrapping text

Composing Custom Legends

Composing Custom Legends

Date tick labels

Date tick labels

AnnotationBbox demo

AnnotationBbox demo

Using a text as a Path

Using a text as a Path

Text Rotation Mode

Text Rotation Mode

The difference between \dfrac and \frac

The difference between \dfrac and \frac

Labeling ticks using engineering notation

Labeling ticks using engineering notation

Annotation arrow style reference

Annotation arrow style reference

Styling text boxes

Styling text boxes

Figure legend demo

Figure legend demo

Configuring the font family

Configuring the font family

Using ttf font files

Using ttf font files

Font table

Font table

Fonts demo (object-oriented style)

Fonts demo (object-oriented style)

Fonts demo (keyword arguments)

Fonts demo (keyword arguments)

Labelling subplots

Labelling subplots

Legend using pre-defined labels

Legend using pre-defined labels

Legend Demo

Legend Demo

Artist within an artist

Artist within an artist

Convert texts to images

Convert texts to images

Mathtext

Mathtext

Mathtext Examples

Mathtext Examples

Math fontfamily

Math fontfamily

Multiline

Multiline

Placing text boxes

Placing text boxes

Concatenating text objects with different properties

Concatenating text objects with different properties

STIX Fonts

STIX Fonts

Rendering math equations using TeX

Rendering math equations using TeX

Text alignment

Text alignment

Text Commands

Text Commands

Controlling style of text and labels using a dictionary

Controlling style of text and labels using a dictionary

Text Rotation Relative To Line

Text Rotation Relative To Line

Title positioning

Title positioning

Unicode minus

Unicode minus

Usetex Baseline Test

Usetex Baseline Test

Usetex Fonteffects

Usetex Fonteffects

Text watermark

Text watermark

Color#

For a description of the colormaps available in Matplotlib, see the colormaps tutorial.

Color Demo

Color Demo

Color by y-value

Color by y-value

Colors in the default property cycle

Colors in the default property cycle

Colorbar

Colorbar

Colormap reference

Colormap reference

Creating a colormap from a list of colors

Creating a colormap from a list of colors

Selecting individual colors from a colormap

Selecting individual colors from a colormap

List of named colors

List of named colors

Ways to set a color's alpha value

Ways to set a color's alpha value

Shapes and collections#

Arrow guide

Arrow guide

Reference for Matplotlib artists

Reference for Matplotlib artists

Line, Poly and RegularPoly Collection with autoscaling

Line, Poly and RegularPoly Collection with autoscaling

Compound path

Compound path

Dolphins

Dolphins

Mmh Donuts!!!

Mmh Donuts!!!

Ellipse with orientation arrow demo

Ellipse with orientation arrow demo

Ellipse Collection

Ellipse Collection

Ellipse Demo

Ellipse Demo

Drawing fancy boxes

Drawing fancy boxes

Hatch demo

Hatch demo

Hatch style reference

Hatch style reference

Plotting multiple lines with a LineCollection

Plotting multiple lines with a LineCollection

Circles, Wedges and Polygons

Circles, Wedges and Polygons

PathPatch object

PathPatch object

Bezier Curve

Bezier Curve

Scatter plot

Scatter plot

Style sheets#

Bayesian Methods for Hackers style sheet

Bayesian Methods for Hackers style sheet

Dark background style sheet

Dark background style sheet

FiveThirtyEight style sheet

FiveThirtyEight style sheet

ggplot style sheet

ggplot style sheet

Grayscale style sheet

Grayscale style sheet

Solarized Light stylesheet

Solarized Light stylesheet

Style sheets reference

Style sheets reference

Module - pyplot#

Infinite lines

Infinite lines

Simple plot

Simple plot

Text and mathtext using pyplot

Text and mathtext using pyplot

Multiple lines using pyplot

Multiple lines using pyplot

Two subplots using pyplot

Two subplots using pyplot

Module - axes_grid1#

Anchored Direction Arrow

Anchored Direction Arrow

Axes divider

Axes divider

Demo Axes Grid

Demo Axes Grid

Axes Grid2

Axes Grid2

HBoxDivider and VBoxDivider demo

HBoxDivider and VBoxDivider demo

Showing RGB channels using RGBAxes

Showing RGB channels using RGBAxes

Colorbar with AxesDivider

Colorbar with AxesDivider

Controlling the position and size of colorbars with Inset Axes

Controlling the position and size of colorbars with Inset Axes

Per-row or per-column colorbars

Per-row or per-column colorbars

Axes with a fixed physical size

Axes with a fixed physical size

Setting a fixed aspect on ImageGrid cells

Setting a fixed aspect on ImageGrid cells

Inset locator demo

Inset locator demo

Inset locator demo 2

Inset locator demo 2

Make room for ylabel using axes_grid

Make room for ylabel using axes_grid

Parasite Simple

Parasite Simple

Parasite Simple2

Parasite Simple2

Scatter Histogram (Locatable Axes)

Scatter Histogram (Locatable Axes)

Simple Anchored Artists

Simple Anchored Artists

Simple Axes Divider 1

Simple Axes Divider 1

Simple axes divider 3

Simple axes divider 3

Simple ImageGrid

Simple ImageGrid

Simple ImageGrid 2

Simple ImageGrid 2

Simple Axisline4

Simple Axisline4

Module - axisartist#

Axis Direction

Axis Direction

axis_direction demo

axis_direction demo

Axis line styles

Axis line styles

Curvilinear grid demo

Curvilinear grid demo

Demo CurveLinear Grid2

Demo CurveLinear Grid2

floating_axes features

floating_axes features

floating_axis demo

floating_axis demo

Parasite Axes demo

Parasite Axes demo

Parasite axis demo

Parasite axis demo

Ticklabel alignment

Ticklabel alignment

Ticklabel direction

Ticklabel direction

Simple axis direction

Simple axis direction

Simple axis tick label and tick directions

Simple axis tick label and tick directions

Simple Axis Pad

Simple Axis Pad

Custom spines with axisartist

Custom spines with axisartist

Simple Axisline

Simple Axisline

Simple Axisline3

Simple Axisline3

Showcase#

Anatomy of a figure

Anatomy of a figure

Firefox

Firefox

Integral as the area under a curve

Integral as the area under a curve

Shaded & power normalized rendering

Shaded & power normalized rendering

Pan/zoom events of overlapping axes

Pan/zoom events of overlapping axes

Stock prices over 32 years

Stock prices over 32 years

XKCD

XKCD

Animation#

Decay

Decay

Animated histogram

Animated histogram

pyplot animation

pyplot animation

The Bayes update

The Bayes update

The double pendulum problem

The double pendulum problem

Animated image using a precomputed list of images

Animated image using a precomputed list of images

Frame grabbing

Frame grabbing

Multiple Axes animation

Multiple Axes animation

Pausing and Resuming an Animation

Pausing and Resuming an Animation

Rain simulation

Rain simulation

Animated 3D random walk

Animated 3D random walk

Animated line plot

Animated line plot

Animated scatter saved as GIF

Animated scatter saved as GIF

Oscilloscope

Oscilloscope

MATPLOTLIB UNCHAINED

MATPLOTLIB UNCHAINED

Event handling#

Matplotlib supports event handling with a GUI neutral event model, so you can connect to Matplotlib events without knowledge of what user interface Matplotlib will ultimately be plugged in to. This has two advantages: the code you write will be more portable, and Matplotlib events are aware of things like data coordinate space and which axes the event occurs in so you don't have to mess with low level transformation details to go from canvas space to data space. Object picking examples are also included.

Close Event

Close Event

Mouse move and click events

Mouse move and click events

Cross-hair cursor

Cross-hair cursor

Data browser

Data browser

Figure/Axes enter and leave events

Figure/Axes enter and leave events

Interactive functions

Interactive functions

Scroll event

Scroll event

Keypress event

Keypress event

Lasso Demo

Lasso Demo

Legend picking

Legend picking

Looking Glass

Looking Glass

Path editor

Path editor

Pick event demo

Pick event demo

Pick event demo 2

Pick event demo 2

Poly Editor

Poly Editor

Pong

Pong

Resampling Data

Resampling Data

Timers

Timers

Trifinder Event Demo

Trifinder Event Demo

Viewlims

Viewlims

Zoom Window

Zoom Window

Miscellaneous#

Anchored Artists

Anchored Artists

Changing colors of lines intersecting a box

Changing colors of lines intersecting a box

Manual Contour

Manual Contour

Coords Report

Coords Report

Custom projection

Custom projection

Customize Rc

Customize Rc

AGG filter

AGG filter

Ribbon Box

Ribbon Box

Adding lines to figures

Adding lines to figures

Fill Spiral

Fill Spiral

Findobj Demo

Findobj Demo

Font indexing

Font indexing

Font properties

Font properties

Building histograms using Rectangles and PolyCollections

Building histograms using Rectangles and PolyCollections

Hyperlinks

Hyperlinks

Image Thumbnail

Image Thumbnail

Plotting with keywords

Plotting with keywords

Matplotlib logo

Matplotlib logo

Multipage PDF

Multipage PDF

Multiprocessing

Multiprocessing

Packed-bubble chart

Packed-bubble chart

Patheffect Demo

Patheffect Demo

Print Stdout

Print Stdout

Rasterization for vector graphics

Rasterization for vector graphics

Set and get properties

Set and get properties

SVG Filter Line

SVG Filter Line

SVG filter pie

SVG filter pie

Table Demo

Table Demo

TickedStroke patheffect

TickedStroke patheffect

transforms.offset_copy

transforms.offset_copy

Zorder Demo

Zorder Demo

3D plotting#

Plot 2D data on 3D plot

Plot 2D data on 3D plot

Demo of 3D bar charts

Demo of 3D bar charts

Create 2D bar graphs in different planes

Create 2D bar graphs in different planes

3D box surface plot

3D box surface plot

Plot contour (level) curves in 3D

Plot contour (level) curves in 3D

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

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

Project contour profiles onto a graph

Project contour profiles onto a graph

Filled contours

Filled contours

Project filled contour onto a graph

Project filled contour onto a graph

Custom hillshading in a 3D surface plot

Custom hillshading in a 3D surface plot

3D errorbars

3D errorbars

Create 3D histogram of 2D data

Create 3D histogram of 2D data

2D images in 3D

2D images in 3D

Intersecting planes

Intersecting planes

Parametric curve

Parametric curve

Lorenz attractor

Lorenz attractor

2D and 3D Axes in same figure

2D and 3D Axes in same figure

Automatic text offsetting

Automatic text offsetting

Draw flat objects in 3D plot

Draw flat objects in 3D plot

Generate polygons to fill under 3D line graph

Generate polygons to fill under 3D line graph

3D plot projection types

3D plot projection types

3D quiver plot

3D quiver plot

Rotating a 3D plot

Rotating a 3D plot

3D scatterplot

3D scatterplot

3D stem

3D stem

3D plots as subplots

3D plots as subplots

3D surface (colormap)

3D surface (colormap)

3D surface (solid color)

3D surface (solid color)

3D surface (checkerboard)

3D surface (checkerboard)

3D surface with polar coordinates

3D surface with polar coordinates

Text annotations in 3D

Text annotations in 3D

Triangular 3D contour plot

Triangular 3D contour plot

Triangular 3D filled contour plot

Triangular 3D filled contour plot

Triangular 3D surfaces

Triangular 3D surfaces

More triangular 3D surfaces

More triangular 3D surfaces

Primary 3D view planes

Primary 3D view planes

3D voxel / volumetric plot

3D voxel / volumetric plot

3D voxel plot of the NumPy logo

3D voxel plot of the NumPy logo

3D voxel / volumetric plot with RGB colors

3D voxel / volumetric plot with RGB colors

3D voxel / volumetric plot with cylindrical coordinates

3D voxel / volumetric plot with cylindrical coordinates

3D wireframe plot

3D wireframe plot

Animate a 3D wireframe plot

Animate a 3D wireframe plot

3D wireframe plots in one direction

3D wireframe plots in one direction

Scales#

These examples cover how different scales are handled in Matplotlib.

Asinh Demo

Asinh Demo

Loglog Aspect

Loglog Aspect

Custom scale

Custom scale

Log Bar

Log Bar

Log Demo

Log Demo

Logit Demo

Logit Demo

Exploring normalizations

Exploring normalizations

Scales

Scales

Log Axis

Log Axis

Symlog Demo

Symlog Demo

Specialty plots#

Hillshading

Hillshading

Anscombe's quartet

Anscombe's quartet

Hinton diagrams

Hinton diagrams

Ishikawa Diagram

Ishikawa Diagram

Left ventricle bullseye

Left ventricle bullseye

MRI with EEG

MRI with EEG

Radar chart (aka spider or star chart)

Radar chart (aka spider or star chart)

The Sankey class

The Sankey class

Long chain of connections using Sankey

Long chain of connections using Sankey

Rankine power cycle

Rankine power cycle

SkewT-logP diagram: using transforms and custom projections

SkewT-logP diagram: using transforms and custom projections

Topographic hillshading

Topographic hillshading

Spines#

Spines

Spines

Spine placement

Spine placement

Dropped spines

Dropped spines

Multiple y-axis with Spines

Multiple y-axis with Spines

Centered spines with arrows

Centered spines with arrows

Ticks#

Automatically setting tick positions

Automatically setting tick positions

Centering labels between ticks

Centering labels between ticks

Colorbar Tick Labelling

Colorbar Tick Labelling

Custom Ticker

Custom Ticker

Formatting date ticks using ConciseDateFormatter

Formatting date ticks using ConciseDateFormatter

Date Demo Convert

Date Demo Convert

Placing date ticks using recurrence rules

Placing date ticks using recurrence rules

Date tick locators and formatters

Date tick locators and formatters

Custom tick formatter for time series

Custom tick formatter for time series

Date Precision and Epochs

Date Precision and Epochs

Dollar ticks

Dollar ticks

Fig Axes Customize Simple

Fig Axes Customize Simple

Major and minor ticks

Major and minor ticks

Multilevel (nested) ticks

Multilevel (nested) ticks

The default tick formatter

The default tick formatter

Tick formatters

Tick formatters

Tick locators

Tick locators

Set default y-axis tick labels on the right

Set default y-axis tick labels on the right

Setting tick labels from a list of values

Setting tick labels from a list of values

Move x-axis tick labels to the top

Move x-axis tick labels to the top

Rotating custom tick labels

Rotating custom tick labels

Fixing too many ticks

Fixing too many ticks

Units#

These examples cover the many representations of units in Matplotlib.

Annotation with units

Annotation with units

Artist tests

Artist tests

Bar demo with units

Bar demo with units

Group barchart with units

Group barchart with units

Basic Units

Basic Units

Ellipse with units

Ellipse with units

Evans test

Evans test

Radian ticks

Radian ticks

Inches and Centimeters

Inches and Centimeters

Unit handling

Unit handling

Embedding Matplotlib in graphical user interfaces#

You can embed Matplotlib directly into a user interface application by following the embedding_in_SOMEGUI.py examples here. Currently Matplotlib supports PyQt/PySide, PyGObject, Tkinter, and wxPython.

When embedding Matplotlib in a GUI, you must use the Matplotlib API directly rather than the pylab/pyplot procedural interface, so take a look at the examples/api directory for some example code working with the API.

CanvasAgg demo

CanvasAgg demo

Embedding in GTK3 with a navigation toolbar

Embedding in GTK3 with a navigation toolbar

Embedding in GTK3

Embedding in GTK3

Embedding in GTK4 with a navigation toolbar

Embedding in GTK4 with a navigation toolbar

Embedding in GTK4

Embedding in GTK4

Embedding in Qt

Embedding in Qt

Embedding in Tk

Embedding in Tk

Embedding in wx #2

Embedding in wx #2

Embedding in wx #3

Embedding in wx #3

Embedding in wx #4

Embedding in wx #4

Embedding in wx #5

Embedding in wx #5

Embedding WebAgg

Embedding WebAgg

Fourier Demo WX

Fourier Demo WX

GTK3 spreadsheet

GTK3 spreadsheet

GTK4 spreadsheet

GTK4 spreadsheet

Display mathtext in WX

Display mathtext in WX

Matplotlib with Glade 3

Matplotlib with Glade 3

mplcvd -- an example of figure hook

mplcvd -- an example of figure hook

pyplot with GTK3

pyplot with GTK3

pyplot with GTK4

pyplot with GTK4

SVG Histogram

SVG Histogram

SVG Tooltip

SVG Tooltip

Tool Manager

Tool Manager

Embedding in a web application server (Flask)

Embedding in a web application server (Flask)

Adding a cursor in WX

Adding a cursor in WX

Widgets#

Examples of how to write primitive, but GUI agnostic, widgets in matplotlib

Annotated cursor

Annotated cursor

Buttons

Buttons

Check buttons

Check buttons

Cursor

Cursor

Lasso Selector

Lasso Selector

Menu

Menu

Mouse Cursor

Mouse Cursor

Multicursor

Multicursor

Select indices from a collection using polygon selector

Select indices from a collection using polygon selector

Polygon Selector

Polygon Selector

Radio Buttons

Radio Buttons

Thresholding an Image with RangeSlider

Thresholding an Image with RangeSlider

Rectangle and ellipse selectors

Rectangle and ellipse selectors

Slider

Slider

Snapping Sliders to Discrete Values

Snapping Sliders to Discrete Values

Span Selector

Span Selector

Textbox

Textbox

Userdemo#

Annotate Explain

Annotate Explain

Annotate Text Arrow

Annotate Text Arrow

Connection styles for annotations

Connection styles for annotations

Custom box styles

Custom box styles

subplot2grid demo

subplot2grid demo

GridSpec demo

GridSpec demo

Nested GridSpecs

Nested GridSpecs

PGF fonts

PGF fonts

PGF preamble

PGF preamble

PGF texsystem

PGF texsystem

Simple Annotate01

Simple Annotate01

Simple Legend01

Simple Legend01

Simple Legend02

Simple Legend02

Gallery generated by Sphinx-Gallery