NetLogo Help: create-temporary-plot-pen

### create-temporary-plot-pen1.1

#### create-temporary-plot-pen string

A new temporary plot pen with the given name is created in the current plot and set to be the current pen.

Few models will want to use this primitive, because all temporary pens disappear when clear-plot or clear-all-plots are called. The normal way to make a pen is to make a permanent pen in the plot's Edit dialog.

If a pen with that name already exists in the current plot, no new pen is created, and the existing pen is set to the current pen.

The new temporary plot pen has the following initial settings:

- Pen: down
- Color: black
- Mode: 0 (line mode)
- Interval: 1

This command will produce a runtime error if the current plot has not been set.

See: clear-plot, clear-all-plots, and set-current-plot-pen.

Take me to the full NetLogo Dictionary