is an option to DiscretePlot and DiscretePlot3D that gives a function to use to generate the primitives for rendering each extent element.
ExtentElementFunction
is an option to DiscretePlot and DiscretePlot3D that gives a function to use to generate the primitives for rendering each extent element.
Details
- ExtentElementFunction->f specifies that each extent element should be rendered with the graphics primitives given by f[region,point].
- ExtentElementFunction->"name" uses a named function for generating extent elements.
- In ExtentElementFunction->f, the region argument to f is given as follows:
-
DiscretePlot {{xmin,xmax},{ymin,ymax}} DiscretePlot3D {{xmin,xmax},{ymin,ymax},{zmin,zmax}} - In ExtentElementFunction->f, the point argument to f is given as follows:
-
DiscretePlot {x,y} DiscretePlot3D {x,y,z}
Examples
Basic Examples (3)
Use functions from ChartElementData:
ChartElementData["DiscretePlot"]DiscretePlot[Sin[t], {t, 10}, ExtentSize -> Full, ExtentElementFunction -> "ArrowRectangle", ColorFunction -> "Rainbow"]Specify appearances for 3D plots:
DiscretePlot3D[PDF[MultivariatePoissonDistribution[3, {1, 1}], {t, u}], {t, 0, 10}, {u, 0, 10}, ExtentSize -> Scaled[0.8], ColorFunction -> "SolarColors", ExtentElementFunction -> "PlaneFadingCube"]Construct a custom rendering function:
vase[{{xmin_, xmax_}, {ymin_, ymax_}, {zmin_, zmax_}}, ___] := {CapForm[None], Tube[
Table[{(xmin + xmax) / 2, (ymin + ymax) / 2, z}, {z, zmin, zmax, (zmax - zmin) / 15}],
Join[Sort[RandomReal[(xmax - xmin){0.1, 0.5}, 8], Less], Sort[RandomReal[(xmax - xmin){0.1, 0.5}, 8], Greater]]]}DiscretePlot3D[PDF[MultivariatePoissonDistribution[1, {1, 1}], {x, y}], {x, 0, 5}, {y, 0, 5}, ExtentSize -> Full, PlotRange -> {0, 0.1}, ColorFunction -> "DeepSeaColors", ExtentElementFunction -> vase]Related Guides
History
Text
Wolfram Research (2010), ExtentElementFunction, Wolfram Language function, https://reference.wolfram.com/language/ref/ExtentElementFunction.html.
CMS
Wolfram Language. 2010. "ExtentElementFunction." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ExtentElementFunction.html.
APA
Wolfram Language. (2010). ExtentElementFunction. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExtentElementFunction.html
BibTeX
@misc{reference.wolfram_2026_extentelementfunction, author="Wolfram Research", title="{ExtentElementFunction}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/ExtentElementFunction.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_extentelementfunction, organization={Wolfram Research}, title={ExtentElementFunction}, year={2010}, url={https://reference.wolfram.com/language/ref/ExtentElementFunction.html}, note=[Accessed: 13-June-2026]}