Registers a visualization class for live model visualization. Visualization classes can be imported from helipad.visualize
, or custom visualization classes can be used if they subclass BaseVisualization
and implement a standard set of methods.
The visualization can then be launched later using model.launchVisual()
.
Parameters
class — class(BaseVisualization), required
A visualization class (not an instantiated object), either imported from
helipad.visualize
, or subclassed fromBaseVisualization
and implementing thelaunch()
,update()
,event()
, andterminate()
methods.
Return Value — Object
An instantiated object from the class, used to set up visualization before launch.
charwick
Jan 08, 2021 at 22:27The object returned by
useVisual()
is used to register any visualizations. For example, this code registers theTimeSeries
visualizer, adds a plot, and then adds a series to that plot.