« View all new features in
Mathematica
9
◄
previous
|
next
►
New in
Mathematica
9
›
Gauges
Highlight Scale Regions
In[1]:=
X
gauges = {VerticalGauge[42, {0, 100}, ScaleRanges -> {75, 100}, GaugeStyle -> Blue], VerticalGauge[42, {0, 100}, ScaleRanges -> {{60, 80}, {80, 90}, {90, 100}}], VerticalGauge[42, {0, 100}, ScaleRanges -> {{60, 80}, {80, 90}, {90, 100}}, ScaleRangeStyle -> {Yellow, Orange, Red}], VerticalGauge[42, {0, 100}, ScaleRanges -> {{0, 33} -> Hue[.25, .5, .8], {33, 66} -> Hue[.125, 1, 1], {66, 100} -> Hue[0, 1, .9]}], VerticalGauge[42, {0, 100}, ScaleRanges -> {{0, 20} -> LightGreen, {80, 100} -> LightRed}], VerticalGauge[42, {0, 100}, ScaleRanges -> {{80, 100} -> {None, Red}}]};
In[2]:=
X
gauges2 = {AngularGauge[42, {0, 100}, ScaleRanges -> {75, 100}, GaugeStyle -> Blue], AngularGauge[42, {0, 100}, ScaleRanges -> {{60, 80}, {80, 90}, {90, 100}}], AngularGauge[42, {0, 100}, ScaleRanges -> {{60, 80}, {80, 90}, {90, 100}}, ScaleRangeStyle -> {Yellow, Orange, Red}], AngularGauge[42, {0, 100}, ScaleRanges -> {{0, 33} -> Hue[.25, .5, .8], {33, 66} -> Hue[.125, 1, 1], {66, 100} -> Hue[0, 1, .9]}], AngularGauge[42, {0, 100}, ScaleRanges -> {{0, 20} -> LightGreen, {80, 100} -> LightRed}], AngularGauge[42, {0, 100}, ScaleRanges -> {80, 100}, ScaleRangeStyle -> {None, Red}]};
In[3]:=
X
Grid[Partition[Riffle[gauges, gauges2], 4]]
Specify styles to highlight ranges of values on the scale.
Out[3]=