Component Guide III: Displays and Controls

From Numerus
Jump to navigation Jump to search

Numerus includes several different display and control components for displaying output and specifying input. These include Tables, Line Graphs, Scatter Charts, Bar Graphs and Histograms (display); and Sliders, Spinners and Toggles (control). All displays provide the option of Continuous Plot (data is displayed continuously throughout the simulation) or Complete Plot (data is only displayed at the end of the run). In the case of Continuous Plot, a Plot Frequency is also be specified. The Plot Frequency gives the number of time steps between plots.

Line Graph

[[File: graph.png|400xpx|left] A Graph display is used to display results of a simulation. A Graph has the capability to display multiple series / variables simultaneously. You can also compare the results of different simulations on the same graph.

Usage: To add a Graph to a model, select the Graph tool in the component palette and then click on either the model canvas or the dashboard. Two objects will appear – a graph stub on the model canvas, and the graph display on the dashboard. The graph display and stub are linked, like two sides of the same coin. They don’t move together, but they represent the same graph object. The purpose of the stub on the model canvas is to provide a way to connect the graph to other objects in the model and set its properties. You can have multiple graph objects in one model, and you can have graph objects on different levels of a multi-level model. In addition, a graph display can have multiple pages or tabs. All graph stubs look identical, but you can tell them apart by looking at the name. The graph display in the dashboard can be resized by grabbing the little handle on the bottom right.