Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 2.46 KB

File metadata and controls

77 lines (52 loc) · 2.46 KB

PlotMotion

An animated equation plotter that runs entirely in the browser — no build step, no dependencies to install.

Desktop browsers only. PlotMotion is currently optimised for desktop use and is not suitable for mobile or tablet browsers.

Features

Equation Input

  • Explicit (y = f(x)) and implicit (f(x,y) = g(x,y)) equation support
  • Cartesian and Polar (r = f(θ)) coordinate modes
  • Real-time formula validation with specific parse error messages
  • Pinnable error tooltips on invalid equations
  • Notation reference popup with 24 math function/constant shortcuts that insert at the cursor

Plot Management

  • Up to 5 simultaneous plots
  • Drag-and-drop reordering of plots
  • Per-plot visibility toggle
  • Per-plot color selection (10 preset colors with auto-cycling)
  • Per-plot line width (1–8 px)
  • Sequence number assignment for controlling animation order

Animation

  • Sequence-based playback (plots in the same group animate simultaneously)
  • Step-by-step curve drawing with a glowing endpoint dot
  • Live coordinate readout during animation
  • Play, pause, and reset controls
  • Speed slider (1–20×)

Canvas & Visualization

  • Neon glow rendering on all curves
  • Adaptive grid with axis labels that scale to the current range
  • Implicit curve rendering via marching squares (1000-cell resolution)
  • Polar curve rendering with radius clipping
  • Discontinuity handling (NaN/Infinity becomes a gap, not a crash)

Zoom & Pan

  • Scroll-wheel zoom centered on the mouse position
  • Click-and-drag panning
  • Per-axis zoom/reset buttons in the gutters
  • Double-click canvas to reset both axes to the default range (−10 to 10)

Range Controls

  • Editable X min/max and Y min/max fields
  • Math expressions accepted in range fields (PI, 2*PI, -PI/2, etc.)
  • Polar mode relabels fields to R max, θ min, θ max

Theme

  • Dark and light themes with a one-click toggle
  • Theme preference persisted in localStorage

Math Support

  • Trigonometric: sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh, asinh, acosh, atanh
  • General: sqrt, cbrt, abs, exp, log, log10, log2, floor, ceil, round, sign, min, max, pow
  • Constants: PI, E
  • ^ as an alias for exponentiation

Usage

Open equation_plotter.html directly in a desktop browser. No server required.

Made with

Built with the help of Claude Code by Anthropic.

License

MIT — see LICENSE