Add Data To Line Graph: Difference between revisions

From StarLogo Nova Wiki
(Marked this version for translation)
No edit summary
Line 16: Line 16:
<!--T:3-->
<!--T:3-->
==Syntax==
==Syntax==
<section begin=image/>[[File:Add DataTo LineGraph.png|right|alt=Add data to line graph Block|thumb]]<section end=image/>
[[File:Add DataTo LineGraph.png|right|alt=Add data to line graph Block|thumb]]
<!-- <code>Add data to line graph [Dropdown: Line Graph Widget] for [Dropdown: Data Series] x-axis: [Textbox: x function] y-axis: [Textbox: y function]</code> -->
<!-- <code>Add data to line graph [Dropdown: Line Graph Widget] for [Dropdown: Data Series] x-axis: [Textbox: x function] y-axis: [Textbox: y function]</code> -->
Inputs:
Inputs:

Revision as of 19:17, 10 August 2023

Other languages:


Add data to line graph

Adds data to a selected series of a selected graph that’s made up of pairs of x-coordinates and y-coordinates. First create a line graph widget using the Widget Editor and add one or more series as needed.

Add data to line graph [▼] for [▼] x-axis: [_] y-axis: [_] is a code block from the Interface drawer.

Usage

Add data to line graph [▼] for [▼] x-axis: [_] y-axis: [_] adds data to a selected series of a selected graph that’s made up of pairs of x-coordinates and y-coordinates. First create a line graph widget using the Widget Editor, and add one or more series as needed.

Syntax

Add data to line graph Block

Inputs:

  1. a graph from the first dropdown menu, and a data series from the second dropdown menu. Then two numbers in the two sockets. The first number will serve as the x function along the graph, and the second will serve as the y function along the graph.


Nuances

You can add many different line graphs to your simulation, and they can all use the same axes! Just be sure to use different sets of data for each line graph.

Related Blocks