setup
Class: matlab.graphics.chartcontainer.ChartContainer
Namespace: matlab.graphics.chartcontainer
Set up instance of chart container subclass
Syntax
setup(obj)
Description
setup(
sets the initial state of the chart.
It executes once when the chart object is created. Any property values passed as name-value
pair arguments to the chart's constructor method are assigned after the obj
)setup
method executes.
Define this method to execute initialization code for each new instance of your class. For example, you can use this method to create the underlying graphics objects and set initial property values on those objects.
Input Arguments
Examples
Tips
Avoid calling drawnow
within the setup
and
update
methods of your chart class. Calling drawnow
in
the setup
and update
methods can cause extraneous updates
within your chart, leading to visual flickering and extraneous updates to objects outside your
chart, which will negatively impact performance.