GaugeLabels

GaugeLabels
is an option for gauge functions that specifies labels to be placed on the gauge.

DetailsDetails

  • 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->None or GaugeLabels->{} will not include any labels.
  • GaugeLabels->label specifies a label at an automatic location on the gauge.
  • Any expression can be specified as a label. It will be given by default in TraditionalForm. Arbitrary strings of text can be given as .
  • With the setting of GaugeLabels->"Value", a numeric representation of the gauge value is included on the gauge.
  • If units are present, the setting of GaugeLabels->"Unit" will include a label of the units on the gauge.
  • If there are multiple markers, only the first value is labeled automatically.
  • GaugeLabels->Placed[label, pos] includes label at position pos.
  • GaugeLabels->{label1, label2, ...} includes multiple labels in the gauge.
  • In gauge functions, Placed allows the following positions:
  • 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

ExamplesExamplesopen allclose all

Basic Examples (12)Basic Examples (12)

Use Automatic to display the gauge value:

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

Place a label on the gauge:

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

Labels can be any expression:

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

If units are present, they can be added as a label to the gauge:

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

Use GaugeLabels->Full to label the gauge value and units if present:

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

Use Placed to control label placement:

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

Add a display of the gauge units:

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

Use a list to specify more than one label:

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

Position labels at values along the scale:

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

Position labels using a scaled coordinate system along the scale:

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

Use a scaled coordinate system over the entire gauge:

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

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

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