Clear Line Graph: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
(Marked this version for translation)
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:
<!--T:3-->
<!--T:3-->
==Syntax==
==Syntax==
<section begin=image/>[[File:Clear LineGraph Nums.png|right|alt=The Clear Line Graph Block|thumb]]<section end=image/>
[[File:Clear LineGraph Nums.png|right|alt=The Clear Line Graph Block|thumb]]
<!-- <code>clear line graph [Dropdown: Line Graph Widget]</code> -->
<!-- <code>clear line graph [Dropdown: Line Graph Widget]</code> -->
Inputs:
Inputs:
#a graph from the dropdown menu
#a graph from the dropdown menu
==Example== <!--T:8-->
<!--T:9-->
[[File:clear_line_graph_example.gif|alt=Clear Line Graph example gif|thumb]]
[[File:clear_line_graph_example.png|alt=Clear Line Graph example code|thumb]]
<!--T:10-->
This is a model of an epidemic. When the setup is pushed the population health line graph is cleared.


<!--T:4-->
<!--T:4-->

Latest revision as of 14:31, 14 August 2023

Other languages:


clear line graph

Removes all existing data on a selected graph.

clear line graph [▼] is a code block from the Interface drawer.

Usage

clear line graph [▼] removes all existing data on the selected line graph.

Syntax

The Clear Line Graph Block

Inputs:

  1. a graph from the dropdown menu

Example

Clear Line Graph example code

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

Nuances

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

Related Blocks