ScaleRanges

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:
  • Noneno ranges drawn
    Alldraw 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 allclose all

Basic Examples  (7)

Specify a range of the scale to be styled:

Style the background of the entire scale:

Specify multiple ranges of the scale to be styled:

Ranges need not be contiguous or distinct:

Directly associate a style with a range with range->style:

Directly associate a style with the entire background range:

Specify a range and a width for the range:

Properties & Relations  (2)

ScaleRanges follow the scale region:

The styles for ScaleRanges are chosen based on the style of the first GaugeStyle:

Wolfram Research (2012), ScaleRanges, Wolfram Language function, https://reference.wolfram.com/language/ref/ScaleRanges.html.

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_2023_scaleranges, author="Wolfram Research", title="{ScaleRanges}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/ScaleRanges.html}", note=[Accessed: 19-March-2024 ]}

BibLaTeX

@online{reference.wolfram_2023_scaleranges, organization={Wolfram Research}, title={ScaleRanges}, year={2012}, url={https://reference.wolfram.com/language/ref/ScaleRanges.html}, note=[Accessed: 19-March-2024 ]}