Updates the visualization with new data and refreshes the display. This is mandatory for any subclasses to implement. Subclasses implementing this method should also use it to store any data necessary for future visualizer operations.
This function should only rarely be called by the user; call model.step()
instead to increment the model by one period and update the graph.
WARNING: This is an internal function. Its use in user code is not recommended or supported, and its signature can change in future updates without warning. Use one of the suggested functions above instead, if applicable.
Parameters
data — dict{str: list[num]}, required
The incremental data to be drawn to screen since the last period. Keys correspond to series on screen. Note that
TimeSeries
will draw all the data in this parameter, so ifTimeSeries.resolution>1
, the incremental data must already be compressed to the existing resolution in order to match existing data.
Notes and Examples