draws a linear gauge showing value in a range of 0 to 1.


draws a linear gauge showing value in a range of min to max.


allows value to be set interactively using the gauge.


draws a gauge showing multiple values.

Details and Options

  • Values less than min or greater than max are clipped to the respective limits.
  • Undefined values or bad input is taken to be missing and typically displays the min value.
  • Units may be assigned to value, min, and max by using Quantity.
  • The units do not need to be the same, but must be compatible.
  • VerticalGauge has the same options as Graphics with the following additions and changes:
  • GaugeFaceElementFunctionAutomaticfunction to draw the face
    GaugeFaceStyleAutomaticstyle for the gauge face
    GaugeFrameElementFunctionAutomaticfunction to draw the frame
    GaugeFrameSizeAutomatichow large to make the gauge frame
    GaugeFrameStyleAutomaticstyle for the gauge frame
    GaugeLabelsNonelabels for the gauge
    GaugeMarkersAutomaticappearance for the marker
    GaugeStyleAutomaticstyle for gauge markers
    MethodAutomaticmethod to use
    PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
    PlotTheme$PlotThemetheme to use for drawing the gauge
    ScaleDivisionsAutomaticthe number and distribution of ticks
    ScaleOriginAutomaticwhere to position the scale in the gauge
    ScalePaddingAutomatichow to draw the space around the scale
    ScaleRangesNonethe sections of the scale to be styled
    ScaleRangeStyleAutomatichow to draw the scale ranges
    ScalingFunctionsNonescaling functions for the gauge
    TargetUnitsAutomaticunits to display in the gauge
  • GaugeLabels can take the following forms:
  • Noneno gauge labels
    Automaticinclude units as labels
    Fullinclude units and a value as labels
    Allinclude all values as labels
    "Value"include values as labels
    "Unit"include units as labels
    labeluse label as a label
    Placed[label,pos]place label at position pos
    {label1,label2,}use multiple labels
  • GaugeLabels->Placed[label,pos] can use the positions pos:
  • Top,Bottom,Left,Right,Centerpositions within the dial
    bsposition along the scale
    Scaled[bs]scaled position along the scale
    {bx,by}scaled position {bx,by} in the gauge
    {pos,{lx,ly}}scaled position {lx,ly} in the label at general position pos in the gauge
  • A list of built-in settings for GaugeMarkers, GaugeFaceElementFunction, and GaugeFrameElementFunction can be obtained from ChartElementData["VerticalGauge"]. A visual gallery is available in the Chart Element Schemes palette.
  • GaugeMarkers->Placed[marker,location] can be used to control where the marker is placed in the gauge. The possible locations are:
  • "DivisionCenter"cumulative markers centered on division marks
    "DivisionInterval"cumulative markers between division marks
    "Scale"within the scale region
    "Center"marker centered on the scale
    "OppositeScale"within the scale region on the side of the axis opposite the ticks
    "ScaleRange"cumulative marker within the scale region
    "Frame"within the dial frame
  • ScaleOrigin can take the following values (using the default vertical scale orientation for reference):
  • rhorizontal postion of the scale of the scale
    Left,Righton which side of the face to center the scale axis
    {ymin,ymax}vertical locations of min and max for the scale
    {horizontal,vertical}horizontal and vertical locations for the scale
  • ScalePadding can take the following forms:
  • pthe same horizontal and vertical padding
    {pr,py}different horizontal and vertical padding
    {{px left,px right},...}different padding on each side of the axis etc.
  • TargetUnits->Automatic automatically selects the units based on the input. If no units are present, none will be displayed.
  • TargetUnits->unit displays unit in the gauge, even if no units were present in the input.


open all close all

Basic Examples  (4)

Generate a dial gauge for a particular value:

Click for copyable input

Generate a gauge using values with units:

Click for copyable input

Generate a gauge that displays multiple values:

Click for copyable input

Generate a dial gauge with an interactive value:

Click for copyable input

Scope  (21)

Options  (71)

Applications  (7)

Introduced in 2012
Updated in 2014