mpl

Paste data. Get a chart link.

From a spreadsheet, CSV or TSV: pick a chart type, share one link. The link is the whole chart, drawn exactly like matplotlib by mpl, a pure-JavaScript matplotlib. Nothing is uploaded or stored.

Line chart of requests per second over a week, this week above last week, with daily peaks
This image is this URL720×420 at 2×, rendered by this Worker420×245 at 2× (the phone drawing), rendered by this Worker
https://mpl.ivar.workers.dev/v1/xZZNb9tGEIb_CrHn18bO137oWqC3XtoCPQiCodi0LYSVXJOu6wb578VLJ60TFGgOSX1Z7JIzszPzPkPpXZqXp2lMm3R3fzqbp_0yJqT5brxMm-02XR-m6eLNuDyO4zFhu80QKAyOQEFFQ4dkiEAUYhCHBKRAKqRBOjRDBapQgzo0oAVaoQ2DdliGCUxhBnNYwAqswhqswzNc4Ao3uMMDXuAV3uAdkRGCUIQhHBGIgqiIhugoGUVQFMVQHCVQCkpFaSgdNaMKqqIahuqogVpQK2pD7WgZTdAUzXbYmpUKcy0wax0mTFOYqDSD1eJwbQ5rITBjjZXGGhmmLLHwmMNgUlh-sOBS4CIB11xgPRpMG-1K567DQgMWdAvni6zQljMs-uprcA2FS1eYlgzLPWBa6aYZViXDXCpMuvEFg7Kfqg0e3eDCyLHqQBm88LZMKXqGmVOd2pi4wDwK3IUiWIFbZ7zotFN6sPLMpTq0uEKdDBj1L6vcpTE1hqdd8QqVKvRoUOexuGDQ2niuHerWoYVpGVsUjWkRomIB1Z6h0epuh3dpP93d7tMmn4siXZ6m033apO9yer_DNt1Np-UVGB6eIR6-NcVfC-Lhf6N4-AKMh6_I8fAKIH8Bx8O_gPyCXaRp_2ac0iYtt4d5eBzHtwnpz9P91XifNvbt0H5J9vCKn-f_BDvLB0C1O5NnN6sz-zVlpijSYLUJTAh3doM2qpB9ZVih3Vi-UTcJaG_B73nAhcWWmqGtVeobZLiSQmppvKgxXmYA_gwosSMlLpkdE4NWaZyYisFy5sWFkxckmr2ubH5dc5N4Znuwzokt1KeToqLK8Vuz5hyts1upWHBZj0S4EM1aKRRHrVdm3T_spLM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CqqiGVXXUQC2oFbWhdrSMJmiKZjtszUqFuRaYtQ4TpilMVJrBanG4Noe1EJixxEpjjQxTlli4zGEwKaw-WHApcJGAay6wHg2mjXal81uHhQYs6BbOF1mhLWdY9MXX4BoKl64wLRmWe8C00k0zrEqGuVSYdOMLBmU_VRs8usGFkWPRgTJ44WmZUvQMM6c6tTFxgXkUuAtFsAK3znjRaaf0YOWZj-rQ4gp1ImCUvyxyl8bUGJ52xStUqtCjQZ3L4lw2LmuHunVoKYaVGVsUjWmRoWIB1Z6h0epC8X68e7NPm7wWRTqcxtM5bdLPOS0ok_kfg_DquzC8-iaI_2f4v8DwFwivvsLwM2yRll_8tEnzm-O0ejcM_Of4cDpfDee0sR9M9Xf8YV59L6izPNGp3Zk8u1md2S85M0eRBqtNsDIh2tkN2ihD9oVghXZj_UbhJKC9Becg4MJyS83Q1ioFDhJciRPFNJ7UGC8zAMdHiR0xccnsmRi0SuO8VPry3MKp41LY68rm1yU1iQva1jmshfJ0QlRUOXpLzpyhZWwrBQs-liUJLiSzVgqVFSvtlUl3VlgrpLM44XFS-MhEgYqrLKTSjvl6W4hu0JwFKs2hmhtUg8CwyZJJErHOCzuchhwFGpfImZFpnL-gOkj1u7SRtSKNU9qkFy-egT7up_kC-kL3NMyvlivRclkpJNcyuQsnNLUx-OeWl0sSzdOvCen3hPTH0-cvCellwiq9TJ_7jcc_E7Z5gerf7YdP2yXn_NmLfzLKbFGG87FYPTdbbmAJ2_Tb8Nf9MM3T6m44r6bhcLq9Sp8ML1e4hC27NJ4OaZPu72g3DtdzQro9nMa00afL2M16Pt68mV-N-4fT_XzxetztHv8G.png
Sharehttps://mpl.ivar.workers.dev/c/r5rpgAELV2ZEcopF
Decode the URL: the spec it carries
{
  "style": "pro-slate",
  "spec": [
    ["fill_between",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3367,3426,3389,3135,3136,3183,3764,4284,3851,3325,2726,3250,3230,3626,3053,3166,2752,3366,4115,4206,3958,3286,3069,3289,3525,3553,3546,3002,2800,3596,4113,4252,4192,3260,3095,3275,3520,3710,3417,3193,3279,3542,4228,4593,4146,3530,3132,3463,3504,3590,3341,3278,3161,3456,4416,4736,4399,3559,3342,3595,2705,2774,2642,2419,2322,2629,3068,3524,3505,2647,2171,2778,2447,2641,2788,2479,2439,2663,3358,3580,3326,2635,2290,2587]],{"alpha":0.12,"color":"C0"}],
    ["plot",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3367,3426,3389,3135,3136,3183,3764,4284,3851,3325,2726,3250,3230,3626,3053,3166,2752,3366,4115,4206,3958,3286,3069,3289,3525,3553,3546,3002,2800,3596,4113,4252,4192,3260,3095,3275,3520,3710,3417,3193,3279,3542,4228,4593,4146,3530,3132,3463,3504,3590,3341,3278,3161,3456,4416,4736,4399,3559,3342,3595,2705,2774,2642,2419,2322,2629,3068,3524,3505,2647,2171,2778,2447,2641,2788,2479,2439,2663,3358,3580,3326,2635,2290,2587]],{"color":"C0","label":"this week","zorder":3}],
    ["plot",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3010,3230,2946,2735,2749,3034,3541,4118,3781,3151,3043,2858,3042,3362,2934,2537,2615,2985,3855,4138,3670,2887,2775,3007,3273,3339,3083,2804,2584,3204,3629,4105,3613,2718,2757,3008,3066,3157,3128,2724,2751,3015,3542,3967,3621,2988,2622,3058,3046,3036,3175,2655,2636,3159,3668,3776,3702,2977,2792,2977,1915,2124,2164,2107,1827,2218,2472,2913,2487,2178,2001,2184,2208,2251,2235,2106,1739,2024,2524,3056,2564,2100,1821,2207]],{"color":"C5","lw":1.2,"ls":"--","label":"last week"}],
    ["set_xticks",[[6,18,30,42,54,66,78]],{}],
    ["set_xticklabels",[["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]],{}],
    ["set_xlim",[0,83],{}],
    ["set_ylim",[0,6000],{}],
    ["set_title",["Requests per second, this week vs last"],{}],
    ["legend",[],{"loc":"upper left","ncol":2}],
    ["fig.tight_layout",[],{}]
  ]
}
{
  "style": "pro-slate",
  "rc": {"font.size":10.5,"xtick.labelsize":10.5,"ytick.labelsize":10.5,"legend.fontsize":10.5,"axes.titlesize":12},
  "spec": [
    ["$subplots",[[1,1]],{"figsize":[4.2,2.45]}],
    ["fill_between",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3367,3426,3389,3135,3136,3183,3764,4284,3851,3325,2726,3250,3230,3626,3053,3166,2752,3366,4115,4206,3958,3286,3069,3289,3525,3553,3546,3002,2800,3596,4113,4252,4192,3260,3095,3275,3520,3710,3417,3193,3279,3542,4228,4593,4146,3530,3132,3463,3504,3590,3341,3278,3161,3456,4416,4736,4399,3559,3342,3595,2705,2774,2642,2419,2322,2629,3068,3524,3505,2647,2171,2778,2447,2641,2788,2479,2439,2663,3358,3580,3326,2635,2290,2587]],{"alpha":0.12,"color":"C0"}],
    ["plot",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3367,3426,3389,3135,3136,3183,3764,4284,3851,3325,2726,3250,3230,3626,3053,3166,2752,3366,4115,4206,3958,3286,3069,3289,3525,3553,3546,3002,2800,3596,4113,4252,4192,3260,3095,3275,3520,3710,3417,3193,3279,3542,4228,4593,4146,3530,3132,3463,3504,3590,3341,3278,3161,3456,4416,4736,4399,3559,3342,3595,2705,2774,2642,2419,2322,2629,3068,3524,3505,2647,2171,2778,2447,2641,2788,2479,2439,2663,3358,3580,3326,2635,2290,2587]],{"color":"C0","label":"this week","zorder":3}],
    ["plot",[[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83],[3010,3230,2946,2735,2749,3034,3541,4118,3781,3151,3043,2858,3042,3362,2934,2537,2615,2985,3855,4138,3670,2887,2775,3007,3273,3339,3083,2804,2584,3204,3629,4105,3613,2718,2757,3008,3066,3157,3128,2724,2751,3015,3542,3967,3621,2988,2622,3058,3046,3036,3175,2655,2636,3159,3668,3776,3702,2977,2792,2977,1915,2124,2164,2107,1827,2218,2472,2913,2487,2178,2001,2184,2208,2251,2235,2106,1739,2024,2524,3056,2564,2100,1821,2207]],{"color":"C5","lw":1.2,"ls":"--","label":"last week"}],
    ["set_xticks",[[6,18,30,42,54,66,78]],{}],
    ["set_xticklabels",[["M","T","W","T","F","S","S"]],{}],
    ["set_xlim",[0,83],{}],
    ["set_ylim",[0,6000],{}],
    ["set_yticks",[[0,2000,4000,6000]],{}],
    ["set_title",["Requests per second"],{}],
    ["legend",[],{"loc":"upper left","ncol":2}],
    ["fig.tight_layout",[],{}]
  ]
}

Start from a chart type

Each opens the studio with sample data in it. Paste your own over it: the chart redraws as you type, on your device.

Or paste a table from Sheets, Excel, Numbers or a CSV
376 / 376matplotlib 3.11.2 test figures reproduced pixel for pixel
0runtime dependencies: no Python, no headless browser, no native code
1 GETno API key, no upload, no state: the URL is the whole chart
PNG · SVG · HTMLPNG at 1×, 2× or 3×; palette PNGs down to 1 bit

Swap .png for .html

The same URL as an interactive page: a crosshair with a data readout, the nearest point on hover or tap, and legend entries that toggle a series. It is a static, cached page: two hash-pinned scripts, no network access.

Not similar. Identical.

mpl is checked against matplotlib itself: every test figure is drawn by matplotlib 3.11.2 and must match mpl's output pixel for pixel. Here is one of them, matplotlib on the left, this service on the right.

matplotlib's rendering of six small temperature charts
matplotlib 3.11.2, Agg backend (reference PNG)
mpl's rendering of the same six charts, identical to matplotlib's
mpl, rendered by this Worker (open the chart)

The two images differ in 0 of 1,800,000 channel values. Across mpl's suite, 376 of 376 figures match matplotlib exactly (how it is tested).

Build a URL

The path is base64url(deflate-raw(JSON)) of a list of matplotlib calls, replayed in order on a Figure. Methods are mpl's Axes and Figure API, with matplotlib's names and keyword arguments.

{
  "style": "pro-dark",       // optional
  "rc": { "font.size": 9 },  // optional
  "spec": [
    [method, [args…], {kwargs}],
    …
  ]
}
CallWhat it does
["plot", [x, y], {"label": "a"}]Any allowed Axes method: plot, scatter, bar, barh, hist, boxplot, imshow, fill_between, errorbar, step, annotate, text, legend, set_*…
["$subplots", [[2, 3]], {"figsize": [9, 5]}]First call only: a grid of Axes; ["sca", [i]] selects one (row-major)
["twinx", []]Adds a twin y axis and selects it
["fig.suptitle", ["…"]]Figure methods: suptitle, supxlabel, supylabel, colorbar, tight_layout, autofmt_xdate, text
{"$dates": ["2026-11-05T14:10", …]}Dates (UTC) anywhere a value goes; ["$formatter", ["x"], {"kind": "concise"}] formats them
URLReturns
/v1/<spec>.pngPNG at 2× (1× if 2× is over the 64 MB budget); @1x @2x @3x before the extension pick a scale
/v1/<spec>.png?colors=NPalette PNG with at most N colours; ?palette=ffffff,000000,… snaps to ≤16 given colours
/v1/<spec>.svgSVG
/v1/<spec>.htmlInteractive page; .svg?interactive=1 is its annotated SVG, for inlining
<spec>The JSON, deflate-raw compressed, base64url (no padding): build it yourself, or in the studio. Nothing is sent to be stored; the URL is the chart
/c/<id>An existing short link (read-only: a visitor cannot make one): the interactive page in a browser, the PNG elsewhere; /c/<id>.png .svg .html pick one

Limits: a spec segment holds 16,384 characters (about 2,000 points of 3-decimal data), 4 megapixels at 1×. A bad spec is a 400 with a message; nothing is ever cached but a successful render.

Embed it anywhere an image goes

READMEs, docs, dashboards, email, chat. Short links are permanent redirects to the full URL; every response is immutable with access-control-allow-origin: *, and the same URL always returns the same bytes.

Markdown
![Weekly traffic](https://mpl.ivar.workers.dev/c/yCtzj5nsw483r2A0.png)
HTML
<img src="https://mpl.ivar.workers.dev/c/yCtzj5nsw483r2A0.png" width="720" height="420" alt="Weekly traffic">
Interactive (iframe)
<iframe src="https://mpl.ivar.workers.dev/c/yCtzj5nsw483r2A0.html" width="760" height="520" style="border:0" title="Weekly traffic"></iframe>
Your own page
// inline the annotated SVG, then attach mpl's hover client
const svg = await (await fetch("https://mpl.ivar.workers.dev/v1/<spec>.svg?interactive=1")).text();
el.innerHTML = svg;   // or append the parsed node
import { attach } from "mpl/interactive";  attach(el);

Framed, the interactive page drops its header and posts {mplHeight} to its parent, so the iframe can fit it.

About

mpl draws charts. A chart's data and styling live in its link, and this site turns the link into a PNG, an SVG or an interactive page. It has no accounts and never asks for passwords, payment or personal information; nothing is uploaded, and there is nothing to install or download. The renderer is open source, written by Ivar Vong. If a chart here is misleading or abusive, report it.