StepPlot Properties
StepPlot properties control the appearance and behavior of step
plots created using stepplot. By changing property values, you can modify
certain aspects of the plot.
sp = stepplot(sys);
sp.Characteristics.PeakResponse.Visible = "on";For more information, see Customize Linear Analysis Plots at Command Line (Control System Toolbox).
Response
Model responses, specified as a StepResponse object or an array of such
objects. Use this property to modify the dynamic system model or appearance for each
response in the plot. Each StepResponse object has these
properties.
Dynamic system, specified as a SISO or MIMO dynamic system model or an array of dynamic system models.
When you initially create a plot, Model matches the value you specify for sys.
Before R2026a: Specify the dynamic system
using the Responses.SourceData.Model
property.
Time steps at which to compute the response, specified as one of these values:
Positive scalar
tFinal— Compute the response fromt = 0tot = tFinal.Two-element vector
[t0 tFinal]— Compute the response fromt = t0tot = tFinal. (since R2023b)Vector
Ti:dt:Tf— Compute the response for the time points specified int.For continuous-time systems,
dtis the sample time of a discrete approximation to the continuous system.For discrete-time systems with a specified sample time,
dtmust match the sample time propertyTsofsys.For discrete-time systems with an unspecified sample time (
Ts = -1),dtmust be1.
[]— Automatically select time values based on system dynamics.
When you specify a time range using either tFinal or [t0 tFinal]:
For continuous-time systems, the function automatically determines the size of the time step and number of points based on the system dynamics.
For discrete-time systems with a specified sample time, the function uses the sample time of
sysas the step size.For discrete-time systems with unspecified sample time (
Ts = -1), the function interpretstFinalas the number of sampling periods to simulate with a sample time of 1 second.
Express t using the time units specified in the
TimeUnit property of sys.
If you specify a step delay td using config, the
function applies the step at t = t0+td.
Before R2026a: Specify time values using the
Responses.SourceData.TimeSpec property.
Response configuration options, specified as a RespConfig object.
Before R2026a: Specify response configuration
options using the Responses.SourceData.Config
property.
LPV model parameter trajectory, specified as a matrix or a function handle.
For exogenous or explicit trajectories, specify
Parameteras a matrix with dimensions N-by-Np, where N is the number of time samples and Np is the number of parameters.Thus, the row vector
p(i,:)contains the parameter values at the ith time step.For endogenous or implicit trajectories, specify
pas a function handle of the form p = F(t,x,u) in continuous time and p = F(k,x,u) in discrete time that gives parameters as a function of time t or time sample k, state x, and input u.This option is useful when you want to simulate quasi-LPV models.
Response name, specified as a string or character vector and stored as a string.
Response visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the response in the plot."off",0, orfalse— Do not display the response in the plot.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Option to list the response in the legend, specified as one of these logical on/off values:
"on",1, ortrue— List the response in the legend."off",0, orfalse— Do not list the response in the legend.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Marker style, specified as one of these values.
| Marker | Description |
|---|---|
"none" | No marker |
"o" | Circle |
"+" | Plus sign |
"*" | Asterisk |
"." | Point |
"x" | Cross |
"_" | Horizontal line |
"|" | Vertical line |
"s" | Square |
"d" | Diamond |
"^" | Upward-pointing triangle |
"v" | Downward-pointing triangle |
">" | Right-pointing triangle |
"<" | Left-pointing triangle |
"p" | Pentagram |
"h" | Hexagram |
Since R2026a
Marker style selection mode, specified as one of these values:
"auto"— Automatically set the marker style based on the marker order of the parent chart object."manual"— Manually specify the marker style order using theMarkerStyleproperty.
Dependencies
If you modify the MarkerStyle property, the value of the MarkerStyleMode changes to "manual".
Plot color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Since R2026a
Color selection mode, specified as one of these values:
"auto"— Automatically set the color based on the color order of the parent chart object."manual"— Manually specify the color order using theColorproperty.
Dependencies
If you modify the Color property, the value of the ColorMode changes to "manual".
Line style, specified as one of these values.
| Line Style | Description |
|---|---|
"-" | Solid line |
"--" | Dashed line |
":" | Dotted line |
"-." | Dash-dotted line |
"none" | No line |
Since R2026a
Line style selection mode, specified as one of these values:
"auto"— Automatically set the line style based on the line style order of the parent chart object."manual"— Manually specify the line style order using theLineStyleproperty.
Dependencies
If you modify the LineStyle property, the value of the LineStyleMode changes to "manual".
Marker size, specified as a positive scalar.
Line width, specified as a positive scalar.
Since R2026a
Series index, specified as a positive integer or "none".
By default, the SeriesIndex property is a number that corresponds to the order in which the response was added to the chart, starting at 1. MATLAB® uses the number to calculate indices for automatically assigning color, line style, or markers for responses. The indices refer to the rows of the arrays stored in the ColorOrder and LineStyleOrder, and MarkerStyleOrder properties of the parent chart. Any responses in the chart that have the same SeriesIndex number also have the same color, line style, and markers.
A SeriesIndex value of "none" indicates that a
response does not participate in the indexing scheme.
Since R2026a
Series index specification mode, specified as one of these values:
"auto"— Automatically set the series index based on the order in which the response was added to the chart."manual"— Manually specify the series index using theSeriesIndexproperty.
Dependencies
If you modify the SeriesIndex property, the value of the SeriesIndexMode changes to "manual".
Response characteristics to display in the plot, specified as a
CharacteristicsManager object with the following properties.
For more information about step response characteristics, see stepinfo.
For more information about confidence regions for identified models, see showConfidence.
Peak response, specified as a CharacteristicOption object with this
property.
Peak response visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the peak response."off",0, orfalse— Do not display the peak response.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Rise time, specified as a CharacteristicOption object with these
fields.
Rise time range limits, specified as a two-element vector of the form [Rmin
Rmax], where Rmin and
Rmx are scalar values between 0 and 1 and
Rmin is less than
Rmax. For example, to measure the time it
takes for the response to rise from 5% to 95% of the way from
the initial to final value, set the limits to [0.05
0.95].
Rise time visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the peak response."off",0, orfalse— Do not display the peak response.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Settling time, specified as a CharacteristicOption object with these
properties.
Threshold for detecting steady state, specified as a scalar value between 0 and 1. For example, to measure when the response remains with 5% of the steady-state value, set a threshold value of 0.05.
Settling time visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the peak response."off",0, orfalse— Do not display the peak response.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Transient time, specified as a CharacteristicOption object with these
properties.
Threshold for detecting steady state, specified as a scalar value between
0 and 1. For example, to measure when the response remains with 5% of the
steady-state value, set a threshold value of 0.05.
Transient time visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the peak response."off",0, orfalse— Do not display the peak response.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Steady-state value, specified as a CharacteristicOption object with this
property.
Steady-state value visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the peak response."off",0, orfalse— Do not display the peak response.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Confidence region for identified models, specified as a
CharacteristicOption object with these properties.
Confidence region visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the confidence region."off",0, orfalse— Do not display the confidence region.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Number of standard deviations to display for the confidence region, specified as a positive scalar.
Dependencies
ConfidenceRegion is supported only for identified
models.
Option to normalize plot, specified as one of these logical on/off values:
"on",1, ortrue— Normalize the plot."off",0, orfalse— Do not normalize the plot.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Units
Time units, specified as one of these values:
"nanoseconds""microseconds""milliseconds""seconds""minutes""hours""days""weeks""months""years"
Dependencies
By default, the response uses the time units of the plotted linear system. You can override the default units by specifying toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Since R2026a
Time unit selection mode, specified as one of these values:
"auto"— Automatically set the time unit to the units of the first system inResponses.Model."manual"— Manually specify the time unit using theTimeUnitproperty.
Dependencies
If you modify the TimeUnit property, the value of the
TimeUnitMode property changes to
"manual".
Inputs and Outputs
Input label text and style, specified as an AxesLabel object or
an array of such objects. Each AxesLabel object has these
properties.
Text value, specified as a string or character vector and stored as a string.
Font size in point units, specified as positive scalar. One point
equals 1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or
"normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or
"italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the
name of a system-supported font name. The default font depends on the
specific operating system and locale. To view a list of available system
fonts, use listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Output label text and style, specified as an AxesLabel object or an array of
such objects. Each AxesLabel object has these properties.
Text value, specified as a string or character vector and stored as a string.
Font size in point units, specified as positive scalar. One point
equals 1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or
"normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or
"italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the
name of a system-supported font name. The default font depends on the
specific operating system and locale. To view a list of available system
fonts, use listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Option to display inputs, specified as one of these logical on/off values or an array of such values:
"on",1, ortrue— Display the corresponding input."off",0, orfalse— Hide the corresponding input.
InputVisible is an array when the plotted system has multiple inputs. By
default, all inputs are visible in the plot.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState or an array of such values.
Option to display outputs, specified as one of these logical on/off values or an array of such values:
"on",1, ortrue— Display the corresponding output."off",0, orfalse— Hide the corresponding output.
OutputVisible is an array when the plotted system has multiple outputs.
By default, all outputs are visible in the plot.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState or an array of such values.
Grouping of inputs and outputs pairs, specified as one of these values:
"none"— Do not group inputs or outputs."inputs"— Group only inputs."outputs"— Group only outputs."all"— Group all input-output pairs.
Labels
Title text and style, specified as an AxesLabel object with these
properties.
Text value, specified as a string or
character vector and stored as a string. To set
the label text, you can set the
String property directly or
use the title
function.
Font size in point units, specified as positive scalar. One point equals 1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or "normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or "italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the name of a system-supported font name. The default font depends on the specific operating system and locale. To view a list of available system fonts, use listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Subtitle text and style, specified as an AxesLabel object with these
properties.
Text value, specified as a string or character vector and stored as a
string. To set the label text, you can set the String
property directly or use the subtitle function.
Font size in point units, specified as positive scalar. One point equals 1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or "normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or "italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the name of a system-supported font name. The default font depends on the specific operating system and locale. To view a list of available system fonts, use listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
X-axis label text and style, specified as an
AxesLabel object with these properties.
Text value, specified as a string or character vector and stored as a
string. To set the label text, you can set the String
property directly or use the xlabel function.
Font size in point units, specified as positive scalar. One point equals
1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or
"normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or
"italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the name
of a system-supported font name. The default font depends on the specific
operating system and locale. To view a list of available system fonts, use
listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Y-axis label text and style, specified as an
AxesLabel object with these properties.
Text value, specified as a string or character vector and stored as a
string. To set the label text, you can set the String
property directly or use the ylabel function.
Font size in point units, specified as positive scalar. One point equals
1/72 inch.
Dependencies
The default font size depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character thickness, specified as "bold" or
"normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Dependencies
The default font weight depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Character slant, specified as "normal" or
"italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Dependencies
The default font angle depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Font name, specified as a string or character vector containing the name
of a system-supported font name. The default font depends on the specific
operating system and locale. To view a list of available system fonts, use
listfonts.
Text color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Since R2026a
Plot legend, specified as a Legend object with these
properties.
Legend axes, specified as a two-element vector of integers indicating the row and column of the axes in which to display the legend.
Before R2026a: Specify the legend axes using the
LegendAxes property.
Dependencies
When Legend.AxesMode is
"auto", Legend.Axes contains the
row and column of the northeast visible axis.
Legend location within the axes, specified as one of he location values listed in this table.
| Location Value | Description |
|---|---|
"north" | Inside top of axes |
"south" | Inside bottom of axes |
"east" | Inside right of axes |
"west" | Inside left of axes |
"northeast" | Inside top-right of axes |
"northwest" | Inside top-left of axes |
"southeast" | Inside bottom-right of axes |
"southwest" | Inside bottom-left of axes |
"northoutside" | Above the axes |
"southoutside" | Below the axes |
"eastoutside" | To the right of the axes |
"westoutside" | To the left of the axes |
"northeastoutside" | Outside top-right corner of the axes |
"northwestoutside" | Outside top-left corner of the axes |
"southeastoutside" | Outside bottom-right corner of the axes |
"southwestoutside" | Outside bottom-left corner of the axes |
"best" | Location where the least conflict occurs with the plot
data at the time that you create the legend. If the plot
data changes, you might need to reset the location to
"best". |
"bestoutside" | Outside top-right corner of the axes (when the legend has a vertical orientation) or below the axes (when the legend has a horizontal orientation) |
Before R2026a: Specify the legend location using
the LegendLocation property.
Legend axes selection mode, specified as one of these values:
"auto"— Show the legend in the northeast visible axes."manual"— Show the legend in the axes indicated by theLegendAxesproperty.
Before R2026a: Specify the legend axes selection
mode using the LegendAxesMode property.
Orientation for stacking legend items, specified as one of these values:
"vertical"— Stack items vertically."horizontal"— Stack items horizontally.
Before R2026a: Specify the legend orientation
using the LegendOrientation property.
Option to display the legend, specified as one of these logical on/off values:
"on",1, ortrue— Display the legend."off",0, orfalse— Hide the legend.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Before R2026a: Specify the legend visibility using
the LegendVisible property.
Text interpreter, specified as one of these values:
"tex"— Interpret characters using a subset of TeX markup."latex"— Interpret characters using LaTeX markup."none"— Display literal characters.
Font size in point units, specified as positive scalar. One point equals
1/72 inch.
Character thickness, specified as "bold" or
"normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Character slant, specified as "normal" or
"italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Font name, specified as a string or character vector containing the name
of a system-supported font name. The default font depends on the specific
operating system and locale. To view a list of available system fonts, use
listfonts.
Axes Limits
X-axis limits, specified as a two-element vector of the form
[min,max] or a cell array of such vectors, where
min is the minimum axis limit and max is
the maximum axis limit.
If XLimitsSharing is:
"all", thenXLimitsis a two-element vector that specifies the X-axis limits for all visible axes in the chart."column", thenXLimitsis a cell array, where each element specifies the X-axis limits for one visible column of axes in the chart."none", thenXLimitsis a cell array, where each element specifies the X-axis limits for one visible axes in the chart.
Dependencies
When an entry in the
XLimitsModeproperty is"auto", the corresponding X-axis limits are configured automatically based on the system dynamics.XLimitscontains limits only for visible inputs. For example, when an entry inInputVisibleisoff, the corresponding limits are removed fromXLimits.
X-axis limit selection mode, specified as one of these strings or a cell array of such strings.
"auto"— Enable automatic limit selection, which is based on the total span of the plotted data."manual"— Manually specify the axis limits by setting theXLimitsproperty.
Dependencies
The dimensions of
XLimitsModematch the dimensions ofXLimits.If you modify an entry in the
XLimitsproperty, the correspondingXLimitsModevalue changes to"manual".XLimitsModecontains selection modes only for visible inputs. For example, when an entry inInputVisibleisoff, the corresponding selection modes are removed fromXLimitsMode.
X-axis limit sharing, specified as one of these strings.
"all"— All axes use the same X-axis limits."column"— All axes in the same input column use the same X-axis limits."none"— Each axes uses its own X-axis limits.
Y-axis limits, specified as a two-element vector of the form
[min,max] or a cell array of such vectors, where
min is the minimum axis limit and max is
the maximum axis limit.
If YLimitsSharing is:
"all", thenYLimitsis a two-element vector that specifies the Y-axis limits for all visible axes in the chart."row", thenYLimitsis a cell array, where each element specifies the Y-axis limits for one visible row of axes in the chart."none", thenYLimitsis a cell array, where each element specifies the Y-axis limits for one visible axes in the chart.
Dependencies
When an entry in the
YLimitsproperty is"auto", the corresponding Y-axis limits are configured automatically based on the system dynamics.YLimitscontains limits only for visible outputs. For example, when an entry inOutputVisibleisoff, the corresponding limits are removed fromYLimits.
Y-axis limit selection mode, specified as one of these strings or a cell array of such strings:
"auto"— Enable automatic limit selection, which is based on the total span of the plotted data."manual"— Manually specify the axis limits by setting theYLimitsproperty.
Dependencies
The dimensions of
YLimitsModematch the dimensions ofYLimits.If you modify an entry in the
YLimitsproperty, the correspondingYLimitsModevalue changes to"manual".YLimitsModecontains selection modes only for visible outputs. For example, when an entry inOutputVisibleisoff, the corresponding selection modes are removed fromYLimitsMode.
Y-axis limit sharing, specified as one of these strings.
"all"— All axes use the same Y-axis limits."row"— All axes in the same output row use the same Y-axis limits."none"— Each axes uses its own Y-axis limits.
Axes Style
Axes style, specified as an AxesStyle object with these properties.
Axes background color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Option to display axes outline, specified as one of these logical on/off values.
"on",1, ortrue— Display outline."off",0, orfalse— Hide outline.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Line width of axes outline and tick marks, specified as a positive scalar value in point units.
Ruler color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet. The ruler color affects axes lines, tick marks, and tick labels.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Font size for tick labels in point units, specified as positive scalar. One point equals 1/72 inch.
Character thickness for tick labels, specified as "bold" or "normal".
Not all fonts have a bold weight. Therefore, the bold font might look the same as the normal font.
Character slant for tick labels, specified as "normal" or "italic".
Not all fonts have an italic font styles. Therefore, the italic font might look the same as the normal font.
Font name for tick labels, specified as a string or character vector containing the name of a system-supported font name. The default font depends on the specific operating system and locale. To view a list of available system fonts, use listfonts.
Option to display major grid lines, specified as one of these logical on/off values.
"on",1, ortrue— Display major grid lines."off",0, orfalse— Hide major grid lines.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Dependencies
The default grid visibility depends on the toolbox preferences. For more information, see Specify Toolbox Settings for Linear Analysis Plots.
Grid color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Width of major grid lines, specified as a positive scalar in point units.
Grid line style, specified as one of these values.
| Line Style | Description |
|---|---|
"-" | Solid line |
"--" | Dashed line |
":" | Dotted line |
"-." | Dash-dotted line |
Grid line transparency, specified as a scalar value in the range [0,1], where a smaller value indicates more transparency.
Option to display minor grid lines, specified as one of these logical on/off values.
"on",1, ortrue— Display minor grid lines."off",0, orfalse— Hide minor grid lines.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Dependencies
Minor grid lines are not displayed by default.
Minor grid color, specified as an RGB triplet or a hexadecimal color code and stored as an RGB triplet.
Alternatively, you can specify some common colors by name. This table lists these colors and their corresponding RGB triplets and hexadecimal color codes.
| Color Name | RGB Triplet | Hexadecimal Color Code |
|---|---|---|
| [1 0 0] | #FF0000 |
| [0 1 0] | #00FF00 |
| [0 0 1] | #0000FF |
| [0 1 1] | #00FFFF |
| [1 0 1] | #FF00FF |
| [1 1 0] | #FFFF00 |
| [0 0 0] | #000000 |
| [1 1 1] | #FFFFFF |
Width of minor grid lines, specified as a positive scalar in point units.
Minor grid line style, specified as one of these values.
| Line Style | Description |
|---|---|
"-" | Solid line |
"--" | Dashed line |
":" | Dotted line |
"-." | Dash-dotted line |
Minor grid line transparency, specified as a scalar value in the range [0,1], where a smaller value indicates more transparency.
Since R2025a
Active data axes for hold workflows on MIMO linear analysis plots
or a SISO Bode plots, specified as a two-element vector of integers indicating the row
and column of the active axes. When you first create a chart, the bottom right axes is
active. If you reduce the number of visible axes, the active axes automatically updates
to a visible axes if necessary.
The DataAxes property affects only hold
workflows that do not include adding new responses.
Complex Systems
Since R2025a
View for responses of complex systems, specified as one of these values:
"realimaginary"— Plot both the real and imaginary components of each response on the same axes with a diamond marker indicating the imaginary component."magnitudephase"— Plot both the magnitude and phase of each response on a single axes with two y-axes. A diamond marker indicates the phase response."complexplane"— Plot each response as a single trajectory in the complex plane, with an arrow indicating the progression of time.
Since R2025a
Option to display the real component of responses for complex systems, specified as one of these logical on/off values:
"on",1, ortrue— Display the real component."off",0, orfalse— Hide the real component.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Dependencies
This property applies only when
ComplexViewTypeis"realimaginary".This property is ignored for purely real systems.
Since R2025a
Option to display the imaginary component of responses for complex systems, specified as one of these logical on/off values:
"on",1, ortrue— Display the imaginary component."off",0, orfalse— Hide the imaginary component.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Dependencies
This property applies only when
ComplexViewTypeis"realimaginary".This property is ignored for purely real systems.
Multiple Responses
Since R2026a
Color order for creating responses, specified as a three-column matrix, where each row is an RGB triplet.
MATLAB assigns colors to responses according to their order of creation. The first response uses the first color, the second response uses the second color, and so on. If there are more responses than colors, then the cycle repeats.
You can change the color order for a chart object in either of these ways:
Set the
ColorOrderproperty directly. In this case, you must specify the color array as a three-column matrix of RGB triplets. For example, the following command sets the color order to red, green, and blue.mychart.ColorOrder = [1 0 0;0 1 0;0 0 1];
Call the
colororderfunction, specifying the chart object as the target. In this case, you can specify the colors using one of these methods:Array of color names
colororder(mychart,["red","green","blue"])
Array of hexadecimal codes
colororder(mychart,["#FF0000","#00FF00","#0000FF"])
Palette name
colororder(mychart,"gem12")
For more information on setting color order, see
colororder.
Since R2026a
Color order definition mode, specified as one of these values:
"auto"— Automatically set the color order based on the color order of the parent graphics object."manual"— Manually specify the color order using theColorOrderproperty.
Dependencies
If you modify the ColorOrder property, the value of the
ColorOrderMode changes to
"manual".
Since R2026a
Line style order for creating responses, specified as one of the following values or an array of such values.
| Line Style | Description |
|---|---|
"-" | Solid line |
"--" | Dashed line |
":" | Dotted line |
"-." | Dash-dotted line |
"none" | No line |
MATLAB assigns line styles to responses according to their order of creation. The first response uses the first line style, the second response uses the second line style, and so on. If there are more responses than line styles, then the cycle repeats.
Since R2026a
Line style order definition mode, specified as one of these values:
"auto"— Automatically set the line style order based on the line style order of the parent graphics object."manual"— Manually specify the line style order using theLineStyleOrderproperty.
Dependencies
If you modify the LineStyleOrder property, the value of
the LineStyleOrderMode changes to
"manual".
Since R2026a
Marker style order for creating responses, specified as one of the following values or an array of such values.
| Marker | Description |
|---|---|
"none" | No marker |
"o" | Circle |
"+" | Plus sign |
"*" | Asterisk |
"." | Point |
"x" | Cross |
"_" | Horizontal line |
"|" | Vertical line |
"s" | Square |
"d" | Diamond |
"^" | Upward-pointing triangle |
"v" | Downward-pointing triangle |
">" | Right-pointing triangle |
"<" | Left-pointing triangle |
"p" | Pentagram |
"h" | Hexagram |
MATLAB assigns marker styles to responses according to their order of creation. The first response uses the first marker style, the second response uses the second marker style, and so on. If there are more responses than marker styles, then the cycle repeats.
Since R2026a
Marker style order definition mode, specified as one of these values:
"auto"— Automatically set the marker style order based on the marker style order of the parent graphics object."manual"— Manually specify the marker style order using theMarkerStyleOrderproperty.
Dependencies
If you modify the MarkerStyleOrder property, the value of
the MarkerStyleOrderMode changes to
"manual".
Since R2026a
This property is read-only.
SeriesIndex value for the next response added to the chart,
returned as a positive integer. This property is useful when you want to track how
the responses cycle through the color, line, and marker styles. This property
maintains a count of the objects in the axes that have a numeric
SeriesIndex property value. MATLAB uses NextSeriesIndex to assign a
SeriesIndex value to each new response. The count starts at
1 when you create the chart, and it increases by
1 for each response added to the chart.
Properties to reset when adding a new response to the chart, specified as one of these values:
"replace"— Delete existing responses and reset chart properties, exceptPositionandUnits, to their default values before displaying the new response."add"— Add new responses to the existing chart. Do not delete existing responses or reset axes properties before displaying the new response.
Position
Chart size and location, including the margins for decorations such as axis labels
and tick marks. Specify this property as a vector of form [left bottom width
height]. The values are in the units specified by the
Units property.
left— Distance from the left edge of the parent container to the outer-left edge of the chart that includes the margins. Typically, the parent container is a figure, panel, or tab.bottom— Distance from the bottom edge of the parent container to the outer-bottom edge of the chart that includes the margins.width— Width of chart, including the margins.height— Height of chart, including the margins.
Note
Setting this property has no effect when the parent of the chart is a
TiledChartLayout.
Chart size and location, excluding the margins for decorations such as axis labels
and tick marks. Specify this property as a vector of form [left bottom width
height]. The values are in the units specified by the
Units property.
left— Distance from the left edge of the parent container to the inner-left edge of the chart that excludes the margins. Typically, the parent container is a figure, panel, or tab.bottom— Distance from the bottom edge of the parent container to the inner-bottom edge of the chart that excludes the margins.width— Width of the chart, excluding the margins.height— Height of the chart, excluding the margins.
Note
Setting this property has no effect when the parent of the chart is a
TiledChartLayout.
Chart size and location, excluding the margins for decorations such as axis labels
and tick marks. Specify this property as a vector of form [left bottom width
height]. This property is equivalent to the
InnerPosition property.
Note
Setting this property has no effect when the parent of the chart is a
TiledChartLayout.
Position units, specified as a value from the following table. To change the position of the chart in specific units, set the Units property before specifying the Position property. If you specify the Units and Position properties in a single command (using name-value pairs), be sure to specify Units before Position.
Units
| Description |
|---|---|
'normalized'
| Normalized with respect to the parent container, which is typically the figure, panel, or tab. The lower left corner of the container maps to (0,0), and the upper right corner maps to (1,1). |
'inches'
| Inches |
'centimeters'
| Centimeters |
'characters'
|
Based on the default font of the graphics root object:
|
'points'
| Typography points. One point equals 1/72 inch. |
'pixels'
|
On Windows® and Macintosh systems, the size of a pixel is 1/96th of an inch. This size is independent of your system resolution. On Linux® systems, the size of a pixel is determined by your system resolution. |
Position property to hold constant when adding, removing, or changing decorations, specified as one of these values:
'outerposition'— TheOuterPositionproperty remains constant when you add, remove, or change decorations such as a title or an axis label. If any positional adjustments are needed, MATLAB adjusts theInnerPositionproperty.'innerposition'— TheInnerPositionproperty remains constant when you add, remove, or change decorations such as a title or an axis label. If any positional adjustments are needed, MATLAB adjusts theOuterPositionproperty.
Note
Setting this property has no effect when the parent of the chart is a TiledChartLayout.
Layout options, specified as a TiledChartLayoutOptions object or GridLayoutOptions object. This property specifies options when an instance of your chart is a child of a tiled chart layout or gridded layout. If the instance is not a child of one of these layouts (for example, it is a child of a figure or panel), then this property is empty and has no effect. Otherwise, you can position the chart within the layout by configuring the layout options.
This code places chart object c into the third tile of a tiled chart layout and makes the chart span 2 rows and 3 columns.
c.Layout.Tile = 3; c.Layout.TileSpan = [2 3];
This code places chart object c into row 2 of a gridded layout and makes the chart span columns 3 and 4.
c.Layout.Row = 2; c.Layout.Column = [3 4];
Visibility
Chart visibility, specified as one of these logical on/off values:
"on",1, ortrue— Display the chart."off",0, orfalse— Hide the chart without deleting it. You can still access the properties of chart when it is not visible.
The value is stored as an on/off logical value of type matlab.lang.OnOffSwitchState.
Parent
Parent container of the chart, specified as one of these objects:
FigureTiledChartLayoutUIFigureUIGridLayoutUIPanelUITab
Visibility of the chart object handle in the list of children for its parent, specified as one of these values:
'on'— Chart object handle is always visible.'off'— Chart object handle is invisible at all times. This option is useful for preventing unintended changes to the chart by another function. To temporarily hide the handle during the execution of that function, set theHandleVisibilityto'off'.'callback'— Chart object handle is visible from within callbacks or functions invoked by callbacks, but not from within functions invoked from the command line. This option blocks access to the object in the Command Window, but it allows callback functions to access it.
Tips
You can also interactively modify response plot properties using the:
Property Editor — For more information, see Customize Linear Analysis Plots Using Property Editor (Control System Toolbox).
Version History
Introduced in R2024bSource data properties under the Responses.SourceData property are
now direct subproperties of the Responses property. The
Responses.SourceData property has been removed.
| Previous Property | New Property |
|---|---|
Responses.SourceData.Model | Responses.Model |
Responses.SourceData.TimeSpec | Responses.TimeSpec |
Responses.SourceData.Config | Responses.Config |
Starting in R2026a, you can configure legends using the Legend
property of the chart object. Also, you can now configure legend properties using name-value
arguments with the legend function.
You can now configure the following legend properties:
AxesLocationAxesModeOrientationVisibleInterpreterFontSizeFontWeightFontAngleFontName
The following chart object properties are now subproperties of the
Legend property and their names have changed. The previous property
names still work, but using them is not recommended.
| Previous Property | New Property |
|---|---|
LegendAxes | Legend.Axes |
LegendAxesMode | Legend.AxesMode |
LegendVisible | Legend.Visible |
LegendLocation | Legend.Location |
LegendOrientation | Legend.Orientation |
You can now control the automatic color, line style, and marker style of responses in the plot using the new chart object properties in this table.
| New Chart Object Property | Description |
|---|---|
ColorOrder | Color order for multiple response plots |
LineStyleOrder | Line style order for multiple response plots |
MarkerStyleOrder | Marker style order for multiple response plots |
ColorOrderMode | Indicates whether the property value of
|
LineStyleOrderMode | |
MarkerStyleOrderMode | |
NextSeriesIndex | Series index for the next response that you add to the chart. Once the software
assigns this series index to a response, it increments
NextSeriesIndex by one. |
The Responses property of each chart object contains one response
object for each response in a chart. This table shows the new style properties for response
objects.
| New Response Object Property | Description |
|---|---|
ColorMode | Indicates whether the property value of
|
LineStyleMode | |
MarkerStyleMode | |
SeriesIndex | Series index, which determines the color, line style, and marker style to select from the corresponding order property of the chart object. When
you add a response to a chart, the software sets its series index to the value of
the |
SeriesIndexMode | Indicates whether the property value of |
Starting in R2025a, StepPlot objects support dynamic systems with
complex coefficients. You can plot the response for a complex system as:
Real and imaginary responses on a single axis
Magnitude and phase responses on a single axis
A single response on a complex plane
When using hold-on workflows, you can now programmatically specify the active data axes
for a chart. To specify the active data axes, set the DataAxes property
of the corresponding chart object.
You can now specify these style properties for chart objects:
Background color — Use the
AxesStyle.BackgroundColorproperty.Box outline width — Use the
AxesStyle.BoxLineWidthproperty.
You can now customize grid line appearance for using new style properties. To specify a
style property, set the corresponding AxesStyle subproperty of the
chart object. This table lists the new style properties and their subproperties and
supported plots.
| Style Property | AxesStyle Subproperty |
|---|---|
| Major grid line style | GridLineStyle |
| Major grid transparency | GridAlpha |
| Minor grid visibility | MinorGridVisible |
| Minor grid color | MinorGridColor |
| Minor grid line width | MinorGridLineWidth |
| Minor grid line style | MinorGridLineStyle |
| Minor grid transparency | MinorGridAlpha |
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)