Registers a reporter to be drawn in a particular plot during the model’s runtime.
reporter — str|func(int), required
A reference to a previously registered reporter, or a function that takes the model time (int) as its only argument and returns a numeric. See
data.addReporter(). Reporters which have been registered with subplots – for example, percentiles or standard deviations – will be plotted as lighter dotted lines. See
label — str, required
The name of the series to be displayed in the legend on the graph.
color — str|Color, required
style — str, optional
Allows for alternatives to solid lines, such as dotted lines. Default value produces a solid line. See Matplotlib linestyle reference for possible values.
Default value: '-'
Return Value — Series
The newly created