fortplot Documentation

fortplot Documentation

Modern Fortran plotting library inspired by matplotlib. No external dependencies, multiple output formats, and Python compatibility.

Getting Started

Quick Start Guide

Basic usage patterns for both stateful and object-oriented APIs.

Setup Instructions

Installation with fpm, CMake, or pip for Python projects.

Examples Gallery

Fortran Examples

Complete working examples with source code and generated plots.

Featured Examples: - Basic Plots - Line plots with both APIs - 3D Plotting - Surface and 3D line plots - Contours - Contour and filled contour plots - Animations - Animated plots with FFmpeg - Unicode Support - Greek letters and LaTeX math

All Examples: - Animation - Creating MP4 animations - Annotations - Text and arrow annotations - ASCII Heatmaps - Terminal visualization - Basic Plots - Fundamental plotting - Boxplot Demo - Box and whisker plots - Colored Contours - Filled contour plots - Contour Demo - Contour line plots - Disconnected Lines - Multi-segment plots - Errorbar Demo - Error bars and uncertainty - Format Strings - Matplotlib-style strings - Grid Demo - Grid line control - Legend Demo - Legend positioning - Line Styles - Line and marker styles - Marker Demo - Scatter plot markers - Pcolormesh - 2D color mesh plots - Scale Examples - Log and symlog scales - Scatter Demo - Scatter plot basics - Show Viewer - Interactive display - Smart Show - Intelligent display - Streamplot - Vector field visualization - Subplot Demo - Multiple plot grids - Unicode Demo - Mathematical symbols

Technical Guides

Development

Platform-Specific

Plot Types

API Reference

Core Interface

Main module with stateful plotting functions.

Figure Management

Object-oriented figure handling and subplot systems.

Backends

PNG, PDF, and ASCII output backends.

Plot Types

Line plots, scatter, contours, surfaces, and animations.

Design Documentation

External Resources