Skip to main content

Clear Line Graph

Removes all existing data on a selected graph.

Clear Line Graph block

Description

The Clear Line Graph block removes all existing data on a selected graph. This is a code block from the Interface drawer.

Usage

Clear Line Graph removes all existing data on the selected line graph.

Syntax

Inputs:

  • A graph from the dropdown menu
Clear Line Graph block syntax

Example

This is a model of an epidemic. When the setup is pushed the population health line graph is cleared.

Clear Line Graph example code

Notes

Clear your line graphs each time before you run a new simulation to keep data separate from each run.