From 6d42c459718f4991107e32af5020000f91c5f3c3 Mon Sep 17 00:00:00 2001 From: tannevaled Date: Mon, 26 Oct 2026 18:12:49 +0100 Subject: [PATCH] feat: text from data without TeX (go-plot v0.3.0) Co-Authored-By: Claude Opus 5.5 --- layouts/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/index.html b/layouts/index.html index a602c91..34c9836 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -81,7 +81,7 @@

The plotting library notebooks reach for first.

📐

matplotlib's object model

Subplots, Plot, SetXLabel, Legend, SetTitle, TightLayout, SetYLim, Axhline: every call the census ranks, named as in matplotlib. Keyword arguments become options: plot.Color("C1").

🎯

Tested equal to matplotlib

Tick locations and labels, colormaps, named colours, and the layout of figures are compared with fixtures generated by matplotlib 3.11.2 itself, exactly unless stated.

-
∑

Real TeX in the labels

$...$ is typeset by go-tex/math with STIX Two Math: fractions, radicals, big operators, limits and matrices, as TeX lays them out.

+
∑

Real TeX in the labels

$...$ is typeset by go-tex/math with STIX Two Math: fractions, radicals, big operators, limits and matrices, as TeX lays them out. Names from data stay plain: ParseMath(false) for a figure or PlainText() on a title, label, tick, legend or text, as matplotlib's parse_math.

🧮

Data from go-ndarray

Every data argument takes []float64, other numeric slices, or a *ndarray.Array of any of its thirteen dtypes.

🖼️

SVG, PNG, and notebooks

SaveSVG writes vector paths, SavePNG anti-aliased pixels, and Display hands a notebook kernel both. The SVG inlines under a strict Content-Security-Policy: no script, no style attribute, no external reference, text as outlines.

🥧

Pie and donut charts

Pie is ax.pie: labels, AutoPct percentages, explode, start angle, direction, a legend. Donut draws a ring. Labels from data can skip TeX (PlainText), and thin wedges' labels can be spread apart (SpreadLabels).