> ## Documentation Index
> Fetch the complete documentation index at: https://docs.numberelectric.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Run your first script

> Plot a sine wave shifted by 30°, then save or share your Phase Lab setup.

Open [Phase Lab](https://numberelectric.com/phase-lab) and paste this script into the NumElectScript editor. The first line declares the script format used throughout this guide. The braces enclose the settings for a single-phase plot.

```text Shifted sine wave theme={null}
numelectscript 2
phase 1 {
  view waveform
  range 0° to 360°
  plot wave = sin(θ - 30°) color teal
}
```

1. Select **Validate** to check the syntax. If you see an error, select its line number to jump to it.
2. Select **Apply to lab** to apply the script.
3. Select **View graphs** to see the trace. At 100% zoom the range shows one full turn. The teal trace crosses zero going upward at 30°.

Replace `30°` with `pi/6` to get the same shift, or with `50 gon` for a 45° shift. Changing the angle unit in Phase Lab relabels the graph without changing the calculation.

## Save or share your setup

In **Saved setups**, enter a name and select **Save setup**. Reopen it from the list to edit it or apply it again.

Select **Share setup** to create a link containing the script. Recipients with Phase Lab access can review it before applying it. Only share scripts you intend the recipient to read.

Next, [compare formulas in one plot](https://docs.numberelectric.com/waveforms.md) or [draw custom geometry](https://docs.numberelectric.com/geometry.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.