Animation#

Animated figures. fplotlib collects frames with add_frame and encodes them into a GIF or animated PNG with save_animation, with no external tool involved.

A rotating Möbius strip as an animated PNG

A rotating Möbius strip as an animated PNG

Travelling wave, saved as an animated GIF

Travelling wave, saved as an animated GIF

Images, Contours and Fields#

Examples in this section demonstrate how to visualize multi-dimensional data, including images, contours, and vector fields. This includes techniques for displaying structured and unstructured data with proper color mapping and field visualization.

Image resampling

Image resampling

Blend transparency with color

Blend transparency with color

Masked Image Display

Masked Image Display

Multiple Images Display

Multiple Images Display

Quiver simple demo

Quiver simple demo

Spy: sparsity patterns

Spy: sparsity patterns

3D Plotting#

Examples in this section demonstrate 3D visualization techniques, including surface plots, scatter plots, line plots in 3D space, and other three-dimensional visualization methods.

Plot 2D data on 3D plot

Plot 2D data on 3D plot

Lorenz Attractor: 3D Visualization

Lorenz Attractor: 3D Visualization

3D Vector Field: Quiver Plot

3D Vector Field: Quiver Plot

Statistics#

Examples in this section show statistical plotting techniques, including error bars, confidence intervals, and curve fitting. These examples demonstrate how to visualize uncertainty and statistical properties of data.

Confidence ellipse of a two-dimensional dataset

Confidence ellipse of a two-dimensional dataset

Curve with error band

Curve with error band

Error Bars: Simple Demonstration

Error Bars: Simple Demonstration

Error Bars: Subsampled Data

Error Bars: Subsampled Data

Subplots, Axes and Figures#

Examples in this section demonstrate layout and figure management, including creating multiple subplots, controlling figure size and aspect ratio, and managing axis properties and appearance.

Axes Demo: Controlling Axes Properties

Axes Demo: Controlling Axes Properties

Damped oscillation, saved as SVG

Damped oscillation, saved as SVG

Multiple subplots

Multiple subplots

Multiple Subplots Demonstration

Multiple Subplots Demonstration

Text, labels and annotations#

Text drawn on a figure, set in Lato. A fragment between dollar signs is mathtext: fplotlib lays it out itself, in Lete Sans Math with TeX’s layout, and needs no TeX installation.

Fonts and characters

Fonts and characters

Math in labels

Math in labels

Mathematical expressions

Mathematical expressions

Gallery generated by Sphinx-Gallery