Examples Gallery

fortplotlib Examples Gallery

This gallery showcases the capabilities of fortplotlib through various examples. Each example includes the source code, rendered outputs in different formats (PNG, ASCII, PDF), and explanations.

Basic Plotting

Basic Plots

Simple line plots demonstrating the fundamental plotting API.

Line Styles

Different line styles and customization options.

Marker Demo

Various marker types and scatter plot capabilities.

Format String Demo

Using matplotlib-style format strings for quick plot styling.

Advanced Features

Contour Demo

Contour plots with customizable levels and colors.

Colored Contours

Filled contour plots with colormaps.

Pcolormesh Demo

Pseudocolor plots for 2D data visualization.

Streamplot Demo

Vector field visualization with streamlines.

ASCII Heatmap

Terminal-based heatmap visualization.

Scaling and Axes

Scale Examples

Linear, logarithmic, and symmetric log scaling demonstrations.

Styling and Customization

Legend Demo

Legend placement and customization options.

Legend Box Demo

Advanced legend styling with boxes and frames.

Unicode Demo

Mathematical symbols and Unicode support in plots.

Interactive Features

Show Viewer Demo

Using the built-in viewer for interactive display.

Smart Show Demo

Intelligent display mode selection based on environment.

Animation

Save Animation Demo

Creating animated plots and saving to video files.


All examples are available in the example/fortran/ directory.