|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
ThermometerGauge
ThermometerGauge[value]
draws a thermometer showing value in a range of 0 to 1.
ThermometerGauge[value, {min, max}]
draws a thermometer showing value in a range of min to max.
ThermometerGauge[Dynamic[value], ...]
allows value to be set interactively using the thermometer.
Details and OptionsDetails and Options
- Values less than min or greater than max are clipped to the respective limits.
- Undefined values or bad input is taken to be missing and typically displays the min value.
- Units may be assigned to value, min, and max by using Quantity.
- The units do not need to be the same, but must be commensurate.
-
- ThermometerGauge has the same options as Graphics, with the following additions and changes:
-
GaugeFaceElementFunction Automatic function to draw the face GaugeFaceStyle Automatic style for the gauge face GaugeFrameElementFunction Automatic function to draw the frame GaugeFrameSize Automatic how large to make the gauge frame GaugeFrameStyle Automatic style for the gauge frame GaugeLabels Automatic labels for the gauge GaugeMarkers Automatic appearance for the marker GaugeStyle Automatic style for gauge markers Method Automatic method to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize ScaleDivisions Automatic the number and distribution of ticks ScaleOrigin Automatic where to position the scale in the gauge ScalePadding Automatic how to draw the space around the scale ScaleRanges None the sections of the scale to be styled ScaleRangeStyle Automatic how to draw the scale ranges ScalingFunctions None scaling functions for the gauge TargetUnits Automatic units to display in the gauge - GaugeLabels can take the following forms:
-
None no gauge labels Automatic include units as labels Full include units and a value as labels All include all values as labels "Value" include values as labels "Unit" include units as labels label use label as a label Placed[label,pos] place label at position pos {label1,label2,...} use multiple labels - GaugeLabels->Placed[label, pos] can use the positions pos:
-
Top,Bottom,Left,Right,Center positions within the dial bs position 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 - ScalePadding can take the following forms:
-
p the same horizontal and vertical padding {pr,py} different horizontal and vertical padding {{px left,px right},...} different padding on each side of the
axis etc. - ThermometerGauge by default uses a filled liquid appearance for the marker.
- TargetUnits->Automatic automatically selects the units based on the input. If no units are present, none will be displayed.
- TargetUnits->unit displays unit in the gauge, even if no units were present in the input.
ExamplesExamplesopen allclose all
Basic Examples (1)Basic Examples (1)
Generate a thermometer gauge for a particular value:
| In[1]:= |
| Out[1]= | ![]() |
New in 9
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »

