LineGraph
Summary
This example demonstrates how to use the LineGraph GUI element to display real-time random data.
Workflow
Details
- Each second both the sine and cosine are calculated and zipped.
- The sine and cosine are mapped into the X and Y coordinates of a Point2d object. This is the object that must be input in the LineGraph.
- The LineGraph node responsible for the real-time visualizations.
- The LineGraph is mapped into a GraphPanel so that the settings from the LineGraph node are applied.
- Finally, the GraphPanel is mapped into a TableLayoutPanel.
Requirements
You need to install the Bonsai.Gui package available in the nuget.org package source. You need to install the following packages:
- Bonsai - GUI (from nuget.org)
- Bonsai - GUI ZedGraph (from nuget.org)
- Bonsai - Vision Library (from Bonsai Packages)
- Bonsai - Numerics Library (from Bonsai Packages)