HorizontalGauge
✖
HorizontalGauge
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.
- HorizontalGauge has the same options as Graphics, with the following additions and changes: [List of all options]
-
GaugeFaceElementFunction Automatic function to draw the face GaugeFaceStyle None style for the gauge face GaugeFrameElementFunction Automatic function to draw the frame GaugeFrameSize Automatic how large to make the gauge frame GaugeFrameStyle None style for the gauge frame GaugeLabels None labels for the gauge GaugeMarkers Automatic appearance for the marker GaugeStyle Automatic style for gauge markers Method Automatic method to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotTheme $PlotTheme theme to use for drawing the gauge ScaleDivisions Automatic the number and distribution of ticks ScaleOrigin Automatic where to position the scale in the gauge ScalePadding Automatic how to draw the space around the scale ScaleRanges None the sections of the scale to be styled ScaleRangeStyle Automatic how to draw the scale ranges ScalingFunctions None scaling functions for the gauge TargetUnits Automatic units to display in the gauge - GaugeLabels can take the following forms:
-
None no gauge labels Automatic include units as labels Full include units and a value as labels All include all values as labels "Value" include values as labels "Unit" include units as labels label use 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,Center positions within the dial bs position 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["HorizontalGauge"]. 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):
-
r horizontal postion of the scale Top,Bottom on 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:
-
p the 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.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio Automatic ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame False whether to put a frame around the plot FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GaugeFaceElementFunction Automatic function to draw the face GaugeFaceStyle None style for the gauge face GaugeFrameElementFunction Automatic function to draw the frame GaugeFrameSize Automatic how large to make the gauge frame GaugeFrameStyle None style for the gauge frame GaugeLabels None labels for the gauge GaugeMarkers Automatic appearance for the marker GaugeStyle Automatic style for gauge markers GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic LabelStyle {} style specifications for labels Method Automatic method to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme $PlotTheme theme to use for drawing the gauge PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame ScaleDivisions Automatic the number and distribution of ticks ScaleOrigin Automatic where to position the scale in the gauge ScalePadding Automatic how to draw the space around the scale ScaleRanges None the sections of the scale to be styled ScaleRangeStyle Automatic how to draw the scale ranges ScalingFunctions None scaling functions for the gauge TargetUnits Automatic units to display in the gauge Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks

List of all options




Examples
open allclose allBasic Examples (4)Summary of the most common use cases
Generate a dial gauge for a particular value:

https://wolfram.com/xid/0v57jnywe3ice-7j3vnk

Generate a gauge using values with units:

https://wolfram.com/xid/0v57jnywe3ice-lk2qyl

Generate a gauge that displays multiple values:

https://wolfram.com/xid/0v57jnywe3ice-1rcslw

Generate a dial gauge with an interactive value:

https://wolfram.com/xid/0v57jnywe3ice-qkwn8n

Scope (22)Survey of the scope of standard use cases
Data and Layouts (7)
Data values do not have to be within the range of the scale:

https://wolfram.com/xid/0v57jnywe3ice-gripqn

Nonreal data is taken to be missing and typically uses the min value of the gauge:

https://wolfram.com/xid/0v57jnywe3ice-z5ueyy

The min and max specified are sorted so that the smaller number of the list is always the min:

https://wolfram.com/xid/0v57jnywe3ice-6ugb19

Generate a gauge using values with units:

https://wolfram.com/xid/0v57jnywe3ice-c466ak

Specify the displayed units with TargetUnits:

https://wolfram.com/xid/0v57jnywe3ice-78rrq6

Change the position of the scale:

https://wolfram.com/xid/0v57jnywe3ice-9fihjx

Specify a constant horizontal and vertical padding:

https://wolfram.com/xid/0v57jnywe3ice-lwa0ss

Use Dynamic to make an interactive gauge:

https://wolfram.com/xid/0v57jnywe3ice-nmfayz

Styling and Appearance (9)
Use a theme to control the overall appearance:

https://wolfram.com/xid/0v57jnywe3ice-zl877x

Combine the theme with other options:

https://wolfram.com/xid/0v57jnywe3ice-wtrxbp

Use explicit styles for the markers:

https://wolfram.com/xid/0v57jnywe3ice-9mc3ni

Use any gradient or indexed color schemes from ColorData to style the markers:

https://wolfram.com/xid/0v57jnywe3ice-jrq1x

Change the type of markers used:

https://wolfram.com/xid/0v57jnywe3ice-ieo7ly

Change where the markers are placed:

https://wolfram.com/xid/0v57jnywe3ice-bj9oqa

Position the marker in the frame:

https://wolfram.com/xid/0v57jnywe3ice-k8qrg2

Use any graphic or image for the marker:

https://wolfram.com/xid/0v57jnywe3ice-pbnphu

Change the style of the face of the gauge:

https://wolfram.com/xid/0v57jnywe3ice-en9qj0

Change the style of the frame around the gauge:

https://wolfram.com/xid/0v57jnywe3ice-ok98ji

Specify ranges of the scale to be colored by the index on the dial face:

https://wolfram.com/xid/0v57jnywe3ice-sv0z0d

Labeling and Legending (6)
Use GaugeLabels to add a label to the gauge face:

https://wolfram.com/xid/0v57jnywe3ice-z3h43a

Add a display of the scale value:

https://wolfram.com/xid/0v57jnywe3ice-sj8663

Add a display of the gauge units:

https://wolfram.com/xid/0v57jnywe3ice-bgx2ku


https://wolfram.com/xid/0v57jnywe3ice-pwz3uj

Use Placed to change the location of the label on the face of the gauge:

https://wolfram.com/xid/0v57jnywe3ice-d1t062

Use a list to specify more than one label:

https://wolfram.com/xid/0v57jnywe3ice-osgfju

Options (69)Common values & functionality for each option
Background (1)
Insert a background color behind the gauge:

https://wolfram.com/xid/0v57jnywe3ice-keda1x

Use GaugeFaceStyle to set the face style:

https://wolfram.com/xid/0v57jnywe3ice-gbxlvg

GaugeFaceElementFunction (3)
List built-in settings for GaugeFaceElementFunction:

https://wolfram.com/xid/0v57jnywe3ice-iuo5q3

For detailed settings use Palettes ▶ ChartElementSchemes:

https://wolfram.com/xid/0v57jnywe3ice-nm2p63

Write a custom GaugeFaceElementFunction:

https://wolfram.com/xid/0v57jnywe3ice-sjgooz

https://wolfram.com/xid/0v57jnywe3ice-xlcxoz

GaugeFaceStyle (3)
Specify the style for the gauge face:

https://wolfram.com/xid/0v57jnywe3ice-is6ce2

Use None to turn off the face:

https://wolfram.com/xid/0v57jnywe3ice-uiz5gy

Use a Texture as a gauge face:

https://wolfram.com/xid/0v57jnywe3ice-3umigp


https://wolfram.com/xid/0v57jnywe3ice-fcokxz

GaugeFrameElementFunction (2)
List built-in settings for GaugeFrameElementFunction:

https://wolfram.com/xid/0v57jnywe3ice-nt2nf5

For detailed settings use Palettes ▶ ChartElementSchemes:

https://wolfram.com/xid/0v57jnywe3ice-xojot2

GaugeFrameSize (3)
Use an explicit width in the graphics coordinate system to draw the frame:

https://wolfram.com/xid/0v57jnywe3ice-f6lf5c

Use None to turn off the frame:

https://wolfram.com/xid/0v57jnywe3ice-2b3jt5

Use named sizes for the frame:

https://wolfram.com/xid/0v57jnywe3ice-orrhfw

GaugeFrameStyle (1)
GaugeLabels (9)

https://wolfram.com/xid/0v57jnywe3ice-u0qje0


https://wolfram.com/xid/0v57jnywe3ice-70587n


https://wolfram.com/xid/0v57jnywe3ice-525ff8

Use Placed to control label placement:

https://wolfram.com/xid/0v57jnywe3ice-4zdth3

Position labels at values along the scale:

https://wolfram.com/xid/0v57jnywe3ice-2137wy

Position labels using a scaled coordinate system along the scale:

https://wolfram.com/xid/0v57jnywe3ice-va9hun

Use a scaled coordinate system over the entire gauge:

https://wolfram.com/xid/0v57jnywe3ice-xr4bey

Place all labels at the middle of the scale and vary the coordinates within the label:

https://wolfram.com/xid/0v57jnywe3ice-nsq3yr

Use a list to specify more than one label:

https://wolfram.com/xid/0v57jnywe3ice-snjvpw

GaugeMarkers (9)

https://wolfram.com/xid/0v57jnywe3ice-t8ch7j

List built-in settings for GaugeMarkers:

https://wolfram.com/xid/0v57jnywe3ice-tf9r82

For detailed settings use Palettes ▶ ChartElementSchemes:

https://wolfram.com/xid/0v57jnywe3ice-8hjkou

Use an image or graphic for a marker:

https://wolfram.com/xid/0v57jnywe3ice-0r749l

Use Placed to change the location of the marker:

https://wolfram.com/xid/0v57jnywe3ice-tftl8w

Position the marker in the frame:

https://wolfram.com/xid/0v57jnywe3ice-xxqbj4

Fill a cumulative bar to the value:

https://wolfram.com/xid/0v57jnywe3ice-hmwcfo

Fill segments that are centered on division values:

https://wolfram.com/xid/0v57jnywe3ice-kdy1ui

Sequential markers are activated when the value rounds to the division value:

https://wolfram.com/xid/0v57jnywe3ice-0vrw9v

Fill segments that are between division values:

https://wolfram.com/xid/0v57jnywe3ice-c4b6ht

Sequential markers are activated when the value is greater than or equal to the division value:

https://wolfram.com/xid/0v57jnywe3ice-4f33kf

Use an image or graphic for a cumulative marker:

https://wolfram.com/xid/0v57jnywe3ice-shup9r

GaugeStyle (5)

https://wolfram.com/xid/0v57jnywe3ice-bjqews

By default different styles are chosen for multiple markers:

https://wolfram.com/xid/0v57jnywe3ice-hvkiv3


https://wolfram.com/xid/0v57jnywe3ice-rz86mp

Use any gradient or indexed color schemes from ColorData:

https://wolfram.com/xid/0v57jnywe3ice-ucxiqx

Specify the style for cumulative markers up to the gauge value:

https://wolfram.com/xid/0v57jnywe3ice-1bfu9b

Specify an additional style for markers beyond the gauge value:

https://wolfram.com/xid/0v57jnywe3ice-qi62pm

PerformanceGoal (2)
PlotTheme (4)
Create gauges using a variety of base themes:

https://wolfram.com/xid/0v57jnywe3ice-ts04n8

Specify a theme with minimal elements:

https://wolfram.com/xid/0v57jnywe3ice-7cygl4


https://wolfram.com/xid/0v57jnywe3ice-z09xhw

The "Sparkline" theme fits gauges in the surrounding text:

https://wolfram.com/xid/0v57jnywe3ice-1q0r6l


https://wolfram.com/xid/0v57jnywe3ice-r71vdr

ScaleDivisions (2)
ScaleOrigin (3)
Use ScaleOrigin to specify a vertical offset for the scale:

https://wolfram.com/xid/0v57jnywe3ice-66h0y

Specify a starting and ending position for the scale:

https://wolfram.com/xid/0v57jnywe3ice-ykr8dg

Specify a horizontal position and vertical extent for the scale:

https://wolfram.com/xid/0v57jnywe3ice-lvbc6x

ScalePadding (3)
Use automatically determined padding around the scale:

https://wolfram.com/xid/0v57jnywe3ice-o6frpu

Specify a constant horizontal and vertical padding:

https://wolfram.com/xid/0v57jnywe3ice-clt5qb

Use a scaled value for the constant horizontal and vertical padding:

https://wolfram.com/xid/0v57jnywe3ice-p5l0wg

Specify different horizontal and vertical padding on each side:

https://wolfram.com/xid/0v57jnywe3ice-ccrd4d

ScaleRanges (7)
Highlight a range of values on the scale:

https://wolfram.com/xid/0v57jnywe3ice-32dbi5


https://wolfram.com/xid/0v57jnywe3ice-rjhpck

Style the entire region behind the scale:

https://wolfram.com/xid/0v57jnywe3ice-7pgo4q

Ranges need not be contiguous or distinct:

https://wolfram.com/xid/0v57jnywe3ice-jkb0lb

Directly associate a style with a range with range->style:

https://wolfram.com/xid/0v57jnywe3ice-jeulza

ScaleRanges draw in front of the gauge face:

https://wolfram.com/xid/0v57jnywe3ice-j00xsg


https://wolfram.com/xid/0v57jnywe3ice-45q432


https://wolfram.com/xid/0v57jnywe3ice-e8rr6b

ScaleRangeStyle (7)
By default, the scale ranges are colored with a gradient based on the marker color:

https://wolfram.com/xid/0v57jnywe3ice-dblyzq

Apply a style to all of the ranges:

https://wolfram.com/xid/0v57jnywe3ice-364szm

Use a list of styles to draw the ranges:

https://wolfram.com/xid/0v57jnywe3ice-yptm0c

Use ScaleRangeStyle->{None,style} to apply a style to the scale only:

https://wolfram.com/xid/0v57jnywe3ice-m9owsc

Apply a style to the backgrounds and foregrounds of all the ranges:

https://wolfram.com/xid/0v57jnywe3ice-664wn4

Color the scale ranges with built-in color schemes:

https://wolfram.com/xid/0v57jnywe3ice-48ecsi

Define a one-dimensional color function:

https://wolfram.com/xid/0v57jnywe3ice-vqfzpd

https://wolfram.com/xid/0v57jnywe3ice-i7l58x

TargetUnits (2)
TicksStyle (2)

https://wolfram.com/xid/0v57jnywe3ice-i4semt

Use None to not draw ticks:

https://wolfram.com/xid/0v57jnywe3ice-2f4qkd

Applications (6)Sample problems that can be solved with this function
Visualize leaf count for successive integrals:

https://wolfram.com/xid/0v57jnywe3ice-5bej7d


https://wolfram.com/xid/0v57jnywe3ice-qjpyol
Monitor memory used by processes with a indicator of the max memory used:

https://wolfram.com/xid/0v57jnywe3ice-8gvtm

Monitor how long the kernel has been running and how much time has been spent in computation:

https://wolfram.com/xid/0v57jnywe3ice-e3ybf3

Monitor progress when integrating a differential equation:

https://wolfram.com/xid/0v57jnywe3ice-exw13n


https://wolfram.com/xid/0v57jnywe3ice-kcs3

Monitor where NIntegrate is focusing on approximating the integral:

https://wolfram.com/xid/0v57jnywe3ice-w6dwt1


https://wolfram.com/xid/0v57jnywe3ice-5paf5f


https://wolfram.com/xid/0v57jnywe3ice-3arr9r

Monitor progress when integrating a differential equation:

https://wolfram.com/xid/0v57jnywe3ice-14tlkn


https://wolfram.com/xid/0v57jnywe3ice-vqj9rq

Visualize the spectral lines of elements:

https://wolfram.com/xid/0v57jnywe3ice-nnsq8m

https://wolfram.com/xid/0v57jnywe3ice-carosw

Wolfram Research (2012), HorizontalGauge, Wolfram Language function, https://reference.wolfram.com/language/ref/HorizontalGauge.html (updated 2014).
Text
Wolfram Research (2012), HorizontalGauge, Wolfram Language function, https://reference.wolfram.com/language/ref/HorizontalGauge.html (updated 2014).
Wolfram Research (2012), HorizontalGauge, Wolfram Language function, https://reference.wolfram.com/language/ref/HorizontalGauge.html (updated 2014).
CMS
Wolfram Language. 2012. "HorizontalGauge." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/HorizontalGauge.html.
Wolfram Language. 2012. "HorizontalGauge." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/HorizontalGauge.html.
APA
Wolfram Language. (2012). HorizontalGauge. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HorizontalGauge.html
Wolfram Language. (2012). HorizontalGauge. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/HorizontalGauge.html
BibTeX
@misc{reference.wolfram_2025_horizontalgauge, author="Wolfram Research", title="{HorizontalGauge}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/HorizontalGauge.html}", note=[Accessed: 25-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_horizontalgauge, organization={Wolfram Research}, title={HorizontalGauge}, year={2014}, url={https://reference.wolfram.com/language/ref/HorizontalGauge.html}, note=[Accessed: 25-March-2025
]}