dartwork-mpl
  • Getting Started
  • Usage Guide
  • Design System
  • Examples Gallery
  • AI
  • API Reference
  • Design Philosophy
/

Getting Started

  • Installation
  • Quick Start
  • Usage Guide
    • Quick Start
    • Styles and Presets
    • Colors and Colormaps
    • Layout and Typography
    • Recipes
    • Save and Validation
    • Extended Plots & Diagnostics
    • Interactive UI
    • Tutorials

Reference

  • Design System
    • Colors
      • Palette Catalog
      • Colormap Catalog
      • Color Space & Manipulation
    • Fonts
      • Font Families
      • Font Utilities
  • Examples Gallery
    • Styling and Themes
      • Dark Mode Rendering
      • Font Family Comparison
      • Glowing Dark Mode t-SNE / GMM Clusters
      • Korean Font Support
      • Style Presets: Side-by-Side Comparison
      • Style Stacking & Compositing
    • Color System
      • Perceptual Color Mixing Matrix
      • Custom Colormaps on Scientific Data
      • Named Color Palettes
      • OKLCH Hue Wheel
      • Perceptual Color Interpolation (OKLCH)
      • Pseudo-Alpha (Solid Opacity Simulation)
    • Formatting
      • Directional Axes & Tick Formatting
      • helpers.labels — Legend and Value Annotations
    • Layout and Annotations
      • Phase Diagram with Semantic Arrow Axes
      • Bivariate KDE with Marginals
      • Publication-Ready Multi-Panel Figure
      • Automatic Panel Indexing
      • Simple Layout: multi-line titles & wide labels
      • Simple Layout: Mixed-Complexity Dashboard
      • Simple Layout: Default vs Margin Buffer
      • Simple Layout: Preventing Text Overflow
    • Helpers API
      • helpers.colors — Curated Palette Lookup
      • helpers.data — Data Validation
      • Styled Figure + Multi-format Save
      • helpers.quality — Figure Quality Checks and Chart-Type Suggestion
      • helpers — End-to-End Workflow
    • Chart Recipes
      • Diverging Bar Charts (templates)
      • Gaussian Process Regression
      • Gradient-Filled Area Chart via OKLCH
      • Icon Fonts (Material Design / Font Awesome)
      • Icon-Enhanced KPI Infographic
      • Bayesian MCMC Posterior Ridgelines
      • Bridge (Waterfall) Chart
    • Real-World Dashboards
      • Component mix over time (stacked area)
      • Sensor KPI summary card (text-only)
      • Grouped bar comparison across sites
      • Threshold-annotated trend
      • Dual-axis sensor trend (bar + line)
    • Creative Visualizations
      • DNA Double Helix
      • Fibonacci Spiral Galaxy
      • Quantum Flow Dynamics
      • Voronoi Dreams
      • Sacred Geometry: Flower of Life
      • Fractal Forest
      • Islamic Geometric Pattern
      • Generative Mandala
      • Circular Audio Spectrum Visualizer
      • Frequency Response Waterfall
      • Synthesizer Waveform Display
      • Fireworks Celebration
      • Gravitational Particle Swarm
      • Magnetic Field Visualization
    • AI Plot Templates
      • 3D scatter
      • Bar
      • Bar (grouped)
      • Bar (horizontal)
      • Boxplot
      • Contour
      • Heatmap
      • Histogram
      • Line
      • Pie
      • Polar / radar
      • Scatter
      • Small multiples
      • Bar (stacked)
      • Tornado
      • Twin axis
      • Violin
      • Waterfall
  • AI & Agent-Assisted Plotting
  • API Reference
    • Style Management
    • Figure Creation
    • Units (cm/inch/mm)
    • Layout Utilities
    • Color Utilities
    • Formatting Utilities
    • Save & Export
    • Visual Validation
    • Lint
    • Font Utilities
    • Icon Font System
    • Colormap Registry
    • Plot Templates
    • Agent Helper Utilities
    • Interactive Viewer
    • Asset Diagnostics (visualization)
    • Diagnostics (module)
    • Prompt Utilities
    • Figure Constants (deprecated)

More

  • Design Philosophy
    • Utilities, Not Wrappers
    • Designed for AI Agents
    • Ownable & Transparent Code
  • Troubleshooting & FAQ
  • Migration Guide

On this page

  • Styling and Themes
  • Color System
  • Formatting
  • Layout and Annotations
  • Helpers API
  • Chart Recipes
  • Real-World Dashboards
  • Example Domain
  • Techniques Demonstrated
  • Conventions
  • Creative Visualizations
  • AI Plot Templates
  • How to access these templates
  1. dartwork-mpl /
  2. Examples Gallery

Examples Gallery¶

This gallery contains examples demonstrating the features and capabilities of dartwork-mpl. Browse the categories below for ready-to-use patterns and techniques.

Styling and Themes¶

Explore dartwork-mpl’s dynamic style presets, built-in bilingual Korean font support using Pretendard, and specialized dark mode settings tailored for modern dashboards.

Dark Mode Rendering

Dark Mode Rendering

Font Family Comparison

Font Family Comparison

Glowing Dark Mode t-SNE / GMM Clusters

Glowing Dark Mode t-SNE / GMM Clusters

Korean Font Support

Korean Font Support

Style Presets: Side-by-Side Comparison

Style Presets: Side-by-Side Comparison

Style Stacking & Compositing

Style Stacking & Compositing

Color System¶

Showcases the power of the dartwork-mpl color management system, including named palettes (Open Color, Tailwind), perceptually uniform interpolation in OKLCH space, and intelligent opacity handling.

Perceptual Color Mixing Matrix

Perceptual Color Mixing Matrix

Custom Colormaps on Scientific Data

Custom Colormaps on Scientific Data

Named Color Palettes

Named Color Palettes

OKLCH Hue Wheel

OKLCH Hue Wheel

Perceptual Color Interpolation (OKLCH)

Perceptual Color Interpolation (OKLCH)

Pseudo-Alpha (Solid Opacity Simulation)

Pseudo-Alpha (Solid Opacity Simulation)

Formatting¶

Format axes, ticks, and value annotations with dartwork-mpl helpers. These examples cover decimal-aware tick formatters, directional axis arrows, and helpers that turn raw bar/line data into clean, labelled chart deliverables.

Directional Axes & Tick Formatting

Directional Axes & Tick Formatting

helpers.labels — Legend and Value Annotations

helpers.labels — Legend and Value Annotations

Layout and Annotations¶

Discover dartwork-mpl’s dynamic layout solver (which prevents label overlapping better than tight_layout) and advanced annotation helpers for publication-ready figures.

Phase Diagram with Semantic Arrow Axes

Phase Diagram with Semantic Arrow Axes

Bivariate KDE with Marginals

Bivariate KDE with Marginals

Publication-Ready Multi-Panel Figure

Publication-Ready Multi-Panel Figure

Automatic Panel Indexing

Automatic Panel Indexing

Simple Layout: multi-line titles & wide labels

Simple Layout: multi-line titles & wide labels

Simple Layout: Mixed-Complexity Dashboard

Simple Layout: Mixed-Complexity Dashboard

Simple Layout: Default vs Margin Buffer

Simple Layout: Default vs Margin Buffer

Simple Layout: Preventing Text Overflow

Simple Layout: Preventing Text Overflow

Helpers API¶

The dartwork_mpl.helpers namespace bundles short, opinionated utilities for everyday plotting tasks: figure creation with style, automatic colour selection, data validation, figure quality checks, and complete end-to-end workflows. Each example demonstrates one helper module in isolation.

helpers.colors — Curated Palette Lookup

helpers.colors — Curated Palette Lookup

helpers.data — Data Validation

helpers.data — Data Validation

Styled Figure + Multi-format Save

Styled Figure + Multi-format Save

helpers.quality — Figure Quality Checks and Chart-Type Suggestion

helpers.quality — Figure Quality Checks and Chart-Type Suggestion

helpers — End-to-End Workflow

helpers — End-to-End Workflow

Chart Recipes¶

Ready-to-adapt chart templates that combine dartwork-mpl’s styling, colour, and layout primitives into production-grade chart types: diverging bars, waterfall bridges, gradient-filled areas, MCMC posterior ridgelines, Gaussian-process regression bands, and icon infographics.

Diverging Bar Charts (templates)

Diverging Bar Charts (templates)

Gaussian Process Regression

Gaussian Process Regression

Gradient-Filled Area Chart via OKLCH

Gradient-Filled Area Chart via OKLCH

Icon Fonts (Material Design / Font Awesome)

Icon Fonts (Material Design / Font Awesome)

Icon-Enhanced KPI Infographic

Icon-Enhanced KPI Infographic

Bayesian MCMC Posterior Ridgelines

Bayesian MCMC Posterior Ridgelines

Bridge (Waterfall) Chart

Bridge (Waterfall) Chart

Real-World Dashboards¶

This gallery showcases complete, production-ready dashboard examples that combine multiple dartwork-mpl features — composite layouts, semantic colors, hierarchical typography, and auto-layout — on realistic sample data.

Each example focuses on one chart in one figure so that the techniques are easy to isolate, remix, and drop into a larger multi-panel report.

Example Domain¶

All examples in this gallery render a consistent synthetic dataset: a small fleet of environmental sensors reporting temperature, humidity, and power draw at several sites over time. The choice of domain is incidental — the visual patterns (dual-axis trends, stacked components, threshold overlays, grouped comparisons, summary cards) transfer directly to any time series or categorical data.

Techniques Demonstrated¶

  • Composite dashboards: plt.figure + GridSpec for multi-panel layouts

  • Dual-axis time series: bar + line on shared x-axis with a secondary y-axis

  • Stacked area charts: component mix over time

  • Threshold-annotated trends: reference lines and shaded bands

  • Grouped bar comparisons: side-by-side categories across periods

  • Text-only summary cards: axis(“off”) + ax.text for KPI tiles

Conventions¶

All dashboards follow dartwork-mpl conventions:

  1. Preset styles: dm.style.use("report") (or "report-kr" for Korean copy) is applied before any figure is created.

  2. Relative typography: titles and labels use dm.fs(n) so that a preset change rescales the whole figure uniformly.

  3. Named colors: charts pull from the oc.* and tw.* palettes instead of raw hex strings.

  4. Auto-layout: dm.simple_layout(fig) is called before plt.show so that margins adapt to actual content rather than static values.

  5. Single chart per file: each example renders exactly one figure. To assemble a multi-panel dashboard, compose the individual snippets inside a single GridSpec.

Component mix over time (stacked area)

Component mix over time (stacked area)

Sensor KPI summary card (text-only)

Sensor KPI summary card (text-only)

Grouped bar comparison across sites

Grouped bar comparison across sites

Threshold-annotated trend

Threshold-annotated trend

Dual-axis sensor trend (bar + line)

Dual-axis sensor trend (bar + line)

Creative Visualizations¶

Artistic and creative examples showcasing the expressive capabilities of dartwork-mpl.

DNA Double Helix

DNA Double Helix

Fibonacci Spiral Galaxy

Fibonacci Spiral Galaxy

Quantum Flow Dynamics

Quantum Flow Dynamics

Voronoi Dreams

Voronoi Dreams

Sacred Geometry: Flower of Life

Sacred Geometry: Flower of Life

Fractal Forest

Fractal Forest

Islamic Geometric Pattern

Islamic Geometric Pattern

Generative Mandala

Generative Mandala

Circular Audio Spectrum Visualizer

Circular Audio Spectrum Visualizer

Frequency Response Waterfall

Frequency Response Waterfall

Synthesizer Waveform Display

Synthesizer Waveform Display

Fireworks Celebration

Fireworks Celebration

Gravitational Particle Swarm

Gravitational Particle Swarm

Magnetic Field Visualization

Magnetic Field Visualization

AI Plot Templates¶

Eighteen ready-to-use plot templates curated for AI coding assistants. Each template is a small, self-contained script written with the 0.4 width=.../aspect=... API and Open Color palette. They are bundled in the wheel under dartwork_mpl/asset/prompt/05-templates/ and exposed through both the prompt utilities and the MCP server.

How to access these templates¶

import dartwork_mpl as dm

# Read a template script as text
bar_src = dm.get_prompt("05-templates/bar")

# Or list everything available under prompts/
print(dm.list_prompts())

Or via MCP from Claude / Cursor / Continue:

dartwork-mpl://templates/{plot_type}

where {plot_type} is one of bar, bar_horizontal, bar_grouped, boxplot, contour, heatmap, histogram, line, pie, plot_3d, polar, scatter, small_multiples, stacked_bar, tornado, twin_axis, violin, or waterfall.

The gallery entries below render each template so you can pick the right shape at a glance, then copy the source from the page (or fetch it via dm.get_prompt) into your project.

3D scatter

3D scatter

Bar

Bar

Bar (grouped)

Bar (grouped)

Bar (horizontal)

Bar (horizontal)

Boxplot

Boxplot

Contour

Contour

Heatmap

Heatmap

Histogram

Histogram

Line

Line

Pie

Pie

Polar / radar

Polar / radar

Scatter

Scatter

Small multiples

Small multiples

Bar (stacked)

Bar (stacked)

Tornado

Tornado

Twin axis

Twin axis

Violin

Violin

Waterfall

Waterfall
Previous
Font Utilities
Next
Styling and Themes

2025 Dartwork

Made with Sphinx and Shibuya theme.