GaugeMarkers

GaugeMarkers
is an option for gauge functions that specifies what markers to draw to mark the values.

DetailsDetails

  • GaugeMarkers->None turns the markers off.
  • With GaugeMarkers->{g1, ..., gn}, the are used cyclically for successive values.
  • A list of built-in settings for GaugeMarkers can be obtained from ChartElementData["AngularGauge", "Markers"]. A visual gallery is available in the Chart Element Schemes palette.
  • GaugeMarkers can take the following forms:
  • "name"named marker appearance
    Graphics[...],Graphics3D[...],Image[...],...graphic or image to be used for a marker
    ChartElementData["name",...]chart element function
    Noneomit the marker for value
    fpure function for creating a gauge element
    {marker1,marker2,...}use for the i^(th) value
    Placed[spec,location]place the markers in spec at location
  • GaugeMarkers supports the following locations inside Placed:
  • "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
  • GaugeMarkers->f specifies that each gauge marker should be rendered with the graphics primitives given by .
  • In GaugeMarkers->f, the region argument to f is given as follows:
  • AngularGauge,ClockGauge{{min,max},{rmin,rmax}}
    HorizontalGauge,VerticalGauge,ThermometerGauge,BulletGauge{{xmin,xmax},{ymin,ymax}}
  • In GaugeMarkers->f, the values argument to f is given as follows for marker placements:
  • "Center","Scale","OutsideScale","InsideScale","Frame"value
    "ScaleRange"{region index,value}
    "DivisionCenter", "DivisionInterval"{{region index,subsection index},value}

ExamplesExamplesopen allclose all

Basic Examples (8)Basic Examples (8)

Use a default sequence of markers to distinguish values:

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

Turn the markers on and off:

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

Use any 2D or 3D graphics or Image as plot markers:

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

List built-in settings for GaugeMarkers:

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

For detailed settings use Palettes ► Chart Element Schemes:

In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=
In[4]:=
Click for copyable input
Out[4]=

Use Placed to change the location of the marker relative to the scale:

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

Use cumulative markers:

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

Use a custom object as a cumulative marker:

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

Construct a custom marker function:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
In[4]:=
Click for copyable input
Out[4]=

Arguments supplied to custom functions change when the marker location changes:

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