Inspect plots and variables
After a run, the runtime panel shows its figures at the top and its workspace in the Variables tab below. Use the two together: the figure shows the shape of a result, and the variable holds the numbers behind it.
Read the Variables table
Each row lists a variable's name, type, shape and residency: CPU for a value in main memory, GPU for a value still on the accelerator. The table shows the run selected in the run header, so after you pick an earlier run it lists that run's workspace.
Open a variable
Select a row to open Inspect variable.

The left side lists the name, type, shape, numeric precision (for example FP64 (double)), residency and size. The right side shows the values in pages of 128 entries; Prev and Next move between pages. Copy text, Copy JSON and Copy CSV put the values on the clipboard for a spreadsheet or another program.
A large array or a GPU value loads one page at a time, so opening it doesn't copy the whole array into the window.
Work with a figure
Each figure gets a tab named by its title, or Figure 1, Figure 2 when it has none. The figure redraws when your code changes it. The buttons at the right of the tab bar:
| Button | What it does |
|---|---|
| Copy figure image | Copies the figure to the clipboard as an image |
| Reset camera | Returns a zoomed, panned or rotated view to its starting view |
| Maximize figure | Gives the figure the whole runtime panel |
Drag to pan, and scroll or pinch to zoom. In a 3-D figure, drag to orbit. In a notebook, scrolling moves past a figure; click inside the figure first to zoom it with the scroll wheel, or hold Ctrl (Cmd on macOS) while scrolling. Settings › Navigation sets which mouse and trackpad gestures orbit, pan and zoom.
Keep or clear figures between runs
Close figures before run in the Run menu closes figures left from the previous run, as if the script began with close all. Turn it off when your code updates the same figure handle across runs. Clear variables before run does the same for the workspace.
Check a result
- Check the axes, units and labels on the figure.
- Open the variable behind it and look for empty,
NaNorInfvalues. - Compute a check value at the
>>prompt, such asmax(y)ortrapz(t, y). - Run the file again with Clear variables before run on, so the result doesn't depend on values left in the workspace.
If something is missing
| Symptom | What to check |
|---|---|
| No variables | The run header shows the run you expect, and the run reached the assignments |
| No figure | The console shows no error before the plotting call |
| The figure is from an earlier run | Select the newest run in the run header, or turn on Close figures before run |
| An earlier run's figure is unavailable | Persist runs was off for that run; run the file again |
For plotting functions and options, see Plotting.
