heuropt-plot
Lightweight SVG plotting helpers for heuropt
results.
Hand-rolled SVG output (no plotters, no tiny-skia, no
heavyweight dependency) so adding heuropt-plot to your project
costs ~20 KB of compiled code.
What's in the box
pareto_front_svg— render a 2-objective Pareto front as an SVG scatter plot with axes and labels.convergence_svg— render a "best fitness so far" trace as an SVG line plot.
Output is a String of valid SVG. Write it to a file, embed it in
HTML, or pipe it to a browser.
Example
use *;
use pareto_front_svg;
let space = new;
let front = vec!;
let svg = pareto_front_svg;
write.unwrap;
License
MIT — see LICENSE at the repo root.