All projects

library

vplot

Early development · API evolving

Purpose
Export figures and embed plots in C++ applications without requiring a Python runtime.
My contribution
I adapt Matplotlib’s C++ rendering core into a standalone C++23 library, with a C ABI, figure export and Dear ImGui integration.
Outcome
A WebAssembly demo is available, with PNG, SVG and PDF output. The API is still evolving and plotting coverage varies by method.

vplot adapts Matplotlib’s C++ rendering core into a standalone C++23 library and exposes it through a C ABI. It can export figures for papers or draw plots inside a renderer’s Dear ImGui interface without a Python runtime.

Plots rendered by vplot

It supports line and scatter plots, histograms, box and violin plots, image and contour plots, vector fields, annotations, axes and subplot layouts. Output includes RGBA buffers, PNG, SVG and PDF.

The API is still evolving and coverage varies by plotting method. The coverage document describes the current limits. The browser demo runs through WebGPU or WebGL 2.

Find something

Search projects, research, and writing. Esc to close.