uigauge
Create gauge component (circular, linear, ninetydegree, semicircular).
📝Syntax
h = uigauge()
h = uigauge(parent)
h = uigauge(..., propertyName, propertyValue)
📥Input Arguments
Parameter Description
parent parent container.
propertyName, propertyValue name-value pairs.
📤Output Arguments
Parameter Description
h UI component object.
📄Description

g = uigauge(parent, style) creates a display-only gauge: styles 'circular' (default), 'linear', 'ninetydegree', 'semicircular'. Properties: Value, Limits, ScaleColors/ScaleColorLimits, ticks, Orientation or ScaleDirection depending on the style.

💡Examples
Captured UI component for the help image.
f = uifigure('Visible', 'off', 'Name', 'Gauges', 'Position', [100 100 520 320]);
g = uigauge(f);
g.Position = [90 70 180 180];
g.Value = 75;
lg = uigauge(f, 'linear');
lg.Position = [310 145 150 40];
lg.Value = 45;
drawnow();
Example illustration
uigauge
f = uifigure();
g = uigauge(f, 'Value', 75);
lg = uigauge(f, 'linear', 'Orientation', 'vertical');
🔗See Also
uifigure
🕔Version History
Version Description
2.0.0 initial version
Edit this page on GitHub