Data matrix containing n observations
Data Types: 2D array or table
Specify optional comma-separated pairs of Name,Value arguments.
Name is the argument name and Value
is the corresponding value. Name must appear
inside single quotes (' ').
You can specify several name and value pair arguments in any order as
Name1,Value1,...,NameN,ValueN.
Example:
'AxesFontSize', 15
, 'Background', 'bands'
, 'Color', [0.88, 0.30, 0.30; 0.20, 0.42, 0.85]
, 'ColorDist', 'directional'
, 'labelX1','mylabelBefore'
, 'labelX2','mylabelAfter'
, 'LineWidth', 2.5
, 'MarkerSize', 200
, 'Orientation','vertical'
, 'plotType', 'double'
, 'TextInside', true
, 'TextSize', 14
, 'Title', '2025 products revenue'
, 'YLabels', ["Product A", "Product B", "Product C"]
Controls the font size of the axis labels.
Example: 'AxesFontSize', 15
Data Types: double
Controls whether alternating background bands are displayed
behind the plot. Admissible values: 'none' (default), 'bands'
Example: 'Background', 'bands'
Data Types: string | char
Specifies the colors for the two sets of dots. Can be either
a built-in palette ('default', 'colorblind', 'ruby_jade','cherry_sky', 'red_blue')
or a 2x3 array of RGP triplets where each row defines the
color of a set of dots.
Example: 'Color', [0.88, 0.30, 0.30; 0.20, 0.42, 0.85]
Data Types: string | char | array of 2 valid MATLAB colours
Controls whether and how the connecting lines are colored based
on the difference between the two values.
Admissible values are:'false' (default) 'directional','magnitude','robust'
Example: 'ColorDist', 'directional'
Data Types: string | char
The Default label is "X1" if X1 is numeric vector or the corresponding
table name if X1 is a table.
Example: 'labelX1','mylabelBefore'
Data Types: char or string
The Default label is "X2" if X2 is numeric vector or the corresponding
table name if X2 is a table.
Example: 'labelX2','mylabelAfter'
Data Types: char or string
Controls the thickness of the lines (bars) connecting each
pair of dots in the dumbbell plot.
Example: 'LineWidth', 2.5
Data Types: Double
If scalar, all markers use the same size. If vector, it must
have the same length as the number of data pairs (rows), and
each pair of dots will use the corresponding size value.
Example: 'MarkerSize', 200
Data Types: numeric scalar or vector
Admissible values are 'horizontal' (default) or 'vertical'
Example: 'Orientation','vertical'
Data Types: string or char
Determines whether to create a single plot or a side by side
plot. Admissible values are 'single' (default) or 'double'
Example: 'plotType', 'double'
Data Types: char or string
When true, numeric labels are displayed inside the marker dots.
if false, labels are positioned outside the markers.
Example: 'TextInside', true
Data Types: logical
Controls the font size of the numeric labels displayed
near or inside the dots.
Example: 'TextSize', 14
Data Types: double
Title(s) for the chart(s). The number of input titles, must
be equal to the number of plots that are created. Default
value for double plots is ['Year 1' 'Year 2']
Example: 'Title', '2025 products revenue'
Data Types: string or char or cell array
Custom labels for each category (row) in the plot. Must have
the same length as the number of rows. If not provided,
default names will be used ('Row 1', 'Row 2',...)
Example: 'YLabels', ["Product A", "Product B", "Product C"]
Data Types: string | char | cell array