Reference 〉Function

TimeSeries.update( dict{str: list[num]} data )

Updates the graph area with new data. This function should not be called by the user; call GUI.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.


  • 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 Graph will draw all the data in this parameter, so if Graph.resolution>1, the incremental data must already be compressed to the existing resolution in order to match existing data.

Notes and Examples

  1. Contribute a Note

    Your email address will not be published. Required fields are marked *

    You may use limited HTML for formatting. Please embed blocks of code in <pre><code> </code></pre> tags.