Skip to main content
NumElectScript is a line-based scripting language for Phase Lab. Write a script to choose a phase model, plot formulas on an angle axis, or draw a shape from coordinates. Save the setup to revisit it or share a link so someone else can review the same script. Start new scripts with numelectscript 2. Use the same workflow for a waveform, a calculus view, or a geometry plot: write the script, validate it, apply it, and view the result.
Reading this guide does not require a Phase Lab plan. Running scripts in Phase Lab requires an active paid plan.

Run your first script

Plot a shifted sine wave and learn how to validate, save, and share a setup.

Plot and compare formulas

Mix angle units, compare both sides of an identity, and configure a calculus view.

Draw custom geometry

Build a closed 2D path or a 3D wireframe from coordinates.

Command reference

Look up syntax, supported functions, and limits for versions 1 and 2.