is an option for gauge functions that gives a function to generate the primitives for rendering the gauge frame.
GaugeFrameElementFunction
is an option for gauge functions that gives a function to generate the primitives for rendering the gauge frame.
Details
- GaugeFrameElementFunction->f specifies that each chart element should be rendered with the graphics primitives given by f[region,values].
- GaugeFrameElementFunction->"name" uses a named function for generating chart elements.
- Lists of built-in named functions for specific charting functions can be obtained from ChartElementData["AngularGauge","Frame"], etc.
- In GaugeFrameElementFunction->f, the region argument to f is given as follows:
-
AngularGauge,ClockGauge {{θmin,θmax},{rmin,rmax}} HorizontalGauge,VerticalGauge,ThermometerGauge,BulletGauge {{xmin,xmax},{ymin,ymax}}
Examples
Basic Examples (2)
Use a built-in ChartElementFunction:
ChartElementData["AngularGauge", "Frame"]AngularGauge[5.5, {0, 10}, GaugeFrameStyle -> Blue, GaugeFrameElementFunction -> "GlassSector"]ChartElementData["VerticalGauge", "Frame"]VerticalGauge[5.5, {0, 10}, GaugeFrameStyle -> Blue, GaugeFrameElementFunction -> "FadingRectangle"]Construct a custom rendering function:
f[{{tmin_, tmax_}, {rmin_, rmax_}}, ___] := Module[{inpts, outpts},
inpts = Array[rmin{Cos[2π # / 100], Sin[2π # / 100]}&, 100];
outpts = Array[rmax{Cos[2π # / 100], Sin[2π # / 100]}&, 100];
{EdgeForm[Directive[Thick, Darker@Gray]], Gray, FilledCurve[{{Line[inpts]}, {Line[outpts]}}]}]AngularGauge[5.5, {0, 10}, GaugeFrameElementFunction -> f]g[{{xmin_, xmax_}, {ymin_, ymax_}}, ___] := {LightBlue, Rectangle[{xmin, ymin}, {xmax, ymax}, RoundingRadius -> .02]}VerticalGauge[5.5, {0, 10}, GaugeFrameElementFunction -> g]Related Guides
-
▪
- Gauges
History
Text
Wolfram Research (2012), GaugeFrameElementFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/GaugeFrameElementFunction.html.
CMS
Wolfram Language. 2012. "GaugeFrameElementFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/GaugeFrameElementFunction.html.
APA
Wolfram Language. (2012). GaugeFrameElementFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/GaugeFrameElementFunction.html
BibTeX
@misc{reference.wolfram_2026_gaugeframeelementfunction, author="Wolfram Research", title="{GaugeFrameElementFunction}", year="2012", howpublished="\url{https://reference.wolfram.com/language/ref/GaugeFrameElementFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_gaugeframeelementfunction, organization={Wolfram Research}, title={GaugeFrameElementFunction}, year={2012}, url={https://reference.wolfram.com/language/ref/GaugeFrameElementFunction.html}, note=[Accessed: 13-June-2026]}