Skip to content
xkqg edited this page Apr 11, 2026 · 96 revisions

MatPlotLibNet Wiki

Matplotlib-inspired charting for .NET — SVG/PNG/PDF output, 60+ series types, fluent API, and first-class support for Blazor, MAUI, ASP.NET Core, and JS frameworks.

Current version: 0.8.1 · NuGet · Changelog · License: LGPL-3.0


Who Should Use This?

MatPlotLibNet is built for .NET developers who need charting that fits naturally into their existing stack — no JavaScript framework, no third-party SaaS, no extra runtime.

You are… MatPlotLibNet gives you…
Blazor / ASP.NET Core developer Drop-in <MplChart> and <MplLiveChart> components; SignalR push; REST endpoint — all wired with standard DI
MAUI developer Native MplChartView control via Microsoft.Maui.Graphics — no WebView
Data scientist / analyst Inline SVG in Polyglot Notebooks or Jupyter; 60 series types covering statistical, financial, and scientific charts
Financial / trading app developer Candlestick, OHLC, 13 technical indicators (SMA, EMA, RSI, MACD, Bollinger, Stochastic, …), backtesting panels
Full-stack .NET + JS developer TypeScript clients for Angular, React, and Vue — same SignalR hub, same chart definitions
Backend / headless pipeline Render SVG, PNG, PDF, or animated GIF server-side with zero UI dependencies

Why MatPlotLibNet?

vs. ScottPlot / OxyPlot / LiveCharts2

These are excellent WinForms / WPF / MAUI renderers. MatPlotLibNet targets the web and server first: SVG rendered on the server, pushed to any browser client over SignalR. No canvas, no WebAssembly boot cost, no browser rendering differences.

vs. Plotly.NET

Plotly.NET emits JavaScript that runs in the browser. MatPlotLibNet renders entirely in .NET — the browser receives finished SVG. That means no JS dependency, consistent output, inline SVG in the DOM (CSS-styleable, accessible, print-quality), and rendering that scales with your server hardware.

vs. SciChart / Syncfusion

Commercial libraries with per-developer or per-app licensing. MatPlotLibNet is LGPL-3.0 — free for closed-source commercial use as a library dependency.

Key differentiators at a glance

MatPlotLibNet
Rendering Server-side SVG — zero client cost
Output SVG, PNG, PDF, JSON, animated GIF
Real-time SignalR push to Blazor, Angular, React, Vue
Series types 60 — including 3D, polar, financial, hierarchical
Math text LaTeX-like inline math in any label or title
Performance AVX SIMD coordinate transform, parallel subplot rendering
License LGPL-3.0 — commercial-friendly
Dependencies Zero for SVG; SkiaSharp opt-in for PNG/PDF/GIF

Quick Start

dotnet add package MatPlotLibNet
Plt.Create()
   .WithTitle("Hello MatPlotLibNet")
   .Plot(x, y, s => { s.Color = Color.Blue; s.Label = "Data"; })
   .WithLegend()
   .Save("chart.svg");

MatPlotLibNet dashboard


Wiki Pages

Page Contents
Getting Started Installation, quick start, output formats (SVG/PNG/PDF/JSON/GIF)
Chart Types All 60 series types with code examples
Styling Themes, colors, colormaps, rcParams, PropCycler
Advanced Layouts, date axes, math text, animations, real-time charts
Package Map All 8 NuGet packages + 3 JS packages explained
Notebooks Polyglot Notebooks + Jupyter — inline SVG, Display(), tips
Benchmarks SVG rendering, SIMD transforms, indicators, JSON, PNG/PDF
Roadmap Version history and planned phases B–G
Contributing How to build, test, and contribute

At a Glance

Series types 60 — line, scatter, bar, financial, statistical, 3D, polar, hierarchical, vector
Output formats SVG (built-in), PNG, PDF, JSON, animated GIF
Platforms .NET 10 / .NET 8, Blazor, MAUI, ASP.NET Core, Angular, React, Vue, Jupyter
Real-time SignalR push to any connected client
Math text LaTeX-like inline math: $\alpha$, x^{2}, H_{2}O
Date axes Auto tick selection from years down to seconds
Layout Constrained layout engine — auto-computes margins from text extents
Transform AVX SIMD single-pass coordinate transform — up to 11.8× faster than naive
Tests 2,430+ xUnit v3 tests

Clone this wiki locally