is an option for gauge functions that describes how to draw sections of the scale.
ScaleRanges
is an option for gauge functions that describes how to draw sections of the scale.
Details
- The followings setting can be used for ScaleRanges:
-
None no ranges drawn All draw background for the entire scale {vmin,vmax} the scale should be styled from vmin to vmax {{vmin,vmax},r} the scale should be styled from vmin to vmax, with range size 0 to r {{vmin,vmax},{rmin,rmax}} the scale should be styled from vmin to vmax, with range size rmin to rmax {range1,range2,…} multiple ranges given by range1, range2, etc. {range1->s1,…} range range1 with style s1 etc. - By default, no scale ranges are drawn on gauges.
- If vmin or vmax is not within the range of the scale, then it is clipped to the endpoints of the scale.
- The range endpoints vmin and vmax 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 si in rangei->si may take the same forms as in ScaleRangeStyle.
Examples
open all close allBasic Examples (7)
Specify a range of the scale to be styled:
{VerticalGauge[42, {0, 100}, ScaleRanges -> {80, 100}], AngularGauge[42, {0, 100}, ScaleRanges -> {80, 100}]}Style the background of the entire scale:
{VerticalGauge[42, {0, 100}, ScaleRanges -> All], AngularGauge[42, {0, 100}, ScaleRanges -> All]}Specify multiple ranges of the scale to be styled:
{VerticalGauge[42, {0, 100}, ScaleRanges -> {{50, 70}, {70, 80}, {80, 90}, {90, 100}}], AngularGauge[42, {0, 100}, ScaleRanges -> {{50, 70}, {70, 80}, {80, 90}, {90, 100}}]}Ranges need not be contiguous or distinct:
{VerticalGauge[42, {0, 100}, ScaleRanges -> {{0, 25}, {50, 75}, {75, 100}, {75, 85}}], AngularGauge[42, {0, 100}, ScaleRanges -> {{0, 25}, {50, 75}, {75, 100}, {75, 85}}]}Directly associate a style with a range with range->style:
{VerticalGauge[42, {0, 100}, ScaleRanges -> {{0, 33} -> Green, {33, 66} -> Yellow, {66, 100} -> Red}], AngularGauge[42, {0, 100}, ScaleRanges -> {{0, 33} -> Green, {33, 66} -> Yellow, {66, 100} -> Red}]}Directly associate a style with the entire background range:
{VerticalGauge[42, {0, 100}, ScaleRanges -> All -> LightBlue], AngularGauge[42, {0, 100}, ScaleRanges -> All -> LightBlue]}Specify a range and a width for the range:
{VerticalGauge[42, {0, 100}, ScaleRanges -> {{{60, 80}, {0, .05}}, {{80, 100}, {0, .075}}}], AngularGauge[42, {0, 100}, ScaleRanges -> {{{60, 80}, {0, .1}}, {{80, 100}, {0, .15}}}]}Properties & Relations (2)
ScaleRanges follow the scale region:
{AngularGauge[42, {0, 100}, ScaleRanges -> {80, 100}, ScaleOrigin -> .8], AngularGauge[42, {0, 100}, ScaleRanges -> {80, 100}, ScaleOrigin -> {Left, 1}]}The styles for ScaleRanges are chosen based on the style of the first GaugeStyle:
{AngularGauge[42, {0, 100}, ScaleRanges -> {{50, 70}, {70, 80}, {80, 90}, {90, 100}}, GaugeStyle -> Blue], AngularGauge[{42, 88}, {0, 100}, ScaleRanges -> {{50, 70}, {70, 80}, {80, 90}, {90, 100}}, GaugeStyle -> {Green, Blue }]}See Also
Related Guides
-
▪
- Gauges
History
Text
Wolfram Research (2012), ScaleRanges, Wolfram Language function, https://reference.wolfram.com/language/ref/ScaleRanges.html.
CMS
Wolfram Language. 2012. "ScaleRanges." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ScaleRanges.html.
APA
Wolfram Language. (2012). ScaleRanges. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ScaleRanges.html
BibTeX
@misc{reference.wolfram_2026_scaleranges, author="Wolfram Research", title="{ScaleRanges}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ScaleRanges.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_scaleranges, organization={Wolfram Research}, title={ScaleRanges}, year={2012}, url={https://reference.wolfram.com/language/ref/ScaleRanges.html}, note=[Accessed: 13-June-2026]}