ScaleRanges

ScaleRanges
is an option for gauge functions that describes how to draw sections of the scale.

DetailsDetails

  • The followings setting can be used for ScaleRanges:
  • Noneno ranges drawn
    Alldraw background for the entire scale
    {vmin,vmax}the scale should be styled from to
    {{vmin,vmax},r}the scale should be styled from to , with range size to r
    {{vmin,vmax},{rmin,rmax}}the scale should be styled from to , with range size to
    {range1,range2,...}multiple ranges given by , , etc.
    {range1->s1,...}range with style etc.
  • By default, no scale ranges are drawn on gauges.
  • If or is not within the range of the scale, then it is clipped to the endpoints of the scale.
  • The range endpoints and need not be in numerical order.
  • The scale itself is taken to be at r=0. For angular gauges, r increases to r=1 at the center of the gauge. For horizontal gauges, r increases to r=1 at the top of the gauge face. For vertical gauges, r increases to r=1 at the left edge of the face.
  • The ranges specified by ScaleRanges need not be contiguous. If multiple ranges overlap, they will be drawn in the order specified.
  • The default sequence of styles and colors for ScaleRanges is based on the style used for the first marker's style, according to GaugeStyle.
  • The style in may take the same forms as in ScaleRangeStyle.

ExamplesExamplesopen allclose all

Basic Examples (7)Basic Examples (7)

Specify a range of the scale to be styled:

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

Style the background of the entire scale:

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

Specify multiple ranges of the scale to be styled:

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

Ranges need not be contiguous or distinct:

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

Directly associate a style with a range with :

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

Directly associate a style with the entire background range:

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

Specify a range and a width for the range:

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