Expand description
Dependency-free SVG rendering for crate::visualization::DebugVisualizer.
Every function in this module produces a real SVG document: axes are drawn from the actual data range, series are real polylines through the actual points, histogram bars come from a real binning pass and heatmap cells from a real colour-mapped normalisation of the supplied matrix.
This exists because SVG is the one raster-free vector format the crate can emit
with zero extra dependencies (the COOLJAPAN Pure-Rust policy keeps the PNG/GIF
encoders behind the optional visual / image / gif features). Formats this
module cannot honestly produce are rejected by the caller with a structured
error rather than being written out under a misleading file extension.
Functions§
- heatmap_
svg - Render a real heatmap: one
<rect>per matrix cell, coloured by the cell’s position within the finite value range of the whole matrix. - histogram_
svg - Render a real histogram from the actual binned counts.
- line_
plot_ svg - Render a real multi-series line plot.