STEM Vector Math Plotter & 24-Asset SVG Diagram Pack

24 Figma-layered STEM SVG diagrams & seamless patterns + zero-dependency batch CLI, paired with a free browser plotter.

Writing technical documentation, ML engineering blogs, or STEM courseware often hits the same snag: you need crisp, dark-mode-friendly mathematical plots and geometric diagrams, and your options are either screenshotting a desktop window or installing a 300 MB Python plotting stack just to render sin(x) or a normal distribution curve.

Why this problem wastes time

Exporting raster PNGs or default scientific charts creates three recurring bottlenecks for developers and technical writers:

Step-by-step workflow

You can generate lightweight, responsive, Figma-layered SVGs directly from mathematical expressions using a pure-math recursive-descent parser and SVG <clipPath> geometry guards:

  1. Parse equations safely without eval: Tokenize and parse arithmetic (+, -, *, /, ^ with right-associative precedence tighter than unary - so -x^2 == -(x^2)), implicit multiplication (2x, 2sin(x), (x+1)(x-1)), constants (pi, e, tau), and functions (sin, cos, tan, exp, ln, log10, sqrt, abs, floor, ceil).
  2. Handle domain gaps and discontinuities cleanly: Skip NaN or out-of-domain points (such as negative inputs to sqrt(x) or ln(x)) and start a fresh M subpath when the domain resumes. Split subpaths automatically whenever abs(y - prev_y) jumps across a vertical pole like 1/(x^2 - 1).
  3. Structure output into named Figma <g> layers: Separate bg-layer, grid-layer, axes-layer, shaded-layer, curve-layer (wrapped in <clipPath>), and annotations-layer inside a responsive viewBox="0 0 800 520" SVG.
  4. Render from the command line with zero external dependencies: run python generate_math_svg.py plot --mode explicit --expr "1/(x^2 - 1)" --xmin -4 --xmax 4 --ymin -4 --ymax 4 --theme dark --accent "#38bdf8" --auto-asymptotes -o rational-plot.svg to generate a clean dark-theme SVG with automatic discontinuity splitting and dashed asymptote lines.

Automating it in seconds

If you want to preview equations interactively in your browser before automating full asset sets, try the live STEM Vector Math Plotter in index.html:

When you are ready to skip drawing diagrams from scratch, the $7.00 Pro 24-Asset Pack on Polar.sh includes:

Open Interactive Tool / Demo
STEM Vector Math Plotter & 24-Asset SVG Diagram Pack
Full Bundle / Pro ($7.00) — Instant digital delivery
Buy on Polar