AngularGauge

AngularGauge[value]
draws a gauge showing value in the range 0 to 1.

AngularGauge[value, {min, max}]
draws a gauge showing value in a range of min to max.

AngularGauge[Dynamic[value], ...]
allows value to be set interactively using the gauge.

AngularGauge[{value1, value2, ...}, ...]
draws a gauge showing multiple values.

Details and OptionsDetails 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.
  • AngularGauge 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
    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 gauge face
    bsposition along the scale
    Scaled[bs]scaled position along the scale
    {bx,by}scaled position in the gauge
    {pos,{lx,ly}}scaled position in the label at general position pos in the gauge
  • A list of built-in settings for GaugeMarkers, GaugeFrameElementFunction, and GaugeFrameElementFunction can be obtained from ChartElementData["AngularGauge"]. A visual gallery is available in the Chart Element Schemes palette.
  • GaugeMarkers->Placed[marker, pos] can be used to control where the marker is placed in the gauge. The possible positions pos are:
  • "Center"center of the dial face
    "DivisionCenter"cumulative markers centered on division marks
    "DivisionInterval"cumulative markers between division marks
    "Scale"within the scale region
    "OutsideScale"outside the scale region
    "InsideScale"inside the scale region
    "ScaleRange"cumulative marker within the scale region
    "Frame"within the dial frame
  • ScaleOrigin can take the following values:
  • rradius of the scale
    Left,Right,Bottom,Topon which side to center the scale
    {min,max}angular locations of min and max for the scale
    {angle,r}angular and radial origins for the scale
  • The angles in ScaleOrigin are measured in radians, counterclockwise from the positive axis. The values need not be between 0 and .
  • Scales run counterclockwise when and clockwise when .
  • If Abs[max-min]>2Pi, the scale will overlap itself.
  • The radial component r of the scale origin is scaled to run from 0 at the center of the gauge to 1 at the edge of the face.
  • ScalePadding can take the following forms:
  • pangular padding p on each end of the scale
    {pmin,pmax}padding before the scale and after
    Noneno padding around the scale
    Automaticautomatically determined padding
    Fullpad to the nearest chord of a circle
    Allpad the scale to make a complete circle
  • 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.

ExamplesExamplesopen allclose all

Basic Examples (3)Basic Examples (3)

Generate a dial gauge for a particular value:

In[1]:=
Click for copyable input
Out[1]=

Generate a gauge that displays multiple values:

In[1]:=
Click for copyable input
Out[1]=

Generate a dial gauge with an interactive value:

In[1]:=
Click for copyable input
Out[1]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »