({{, (RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction]) 
is an option to (RefLink[DiscretePlot, paclet:ref/DiscretePlot]) and (RefLink[DiscretePlot3D, paclet:ref/DiscretePlot3D]) that gives a function to use to generate the primitives for rendering each extent element. }})

OpenersNotesSection(Spacer1)Details

(RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction])->f specifies that each extent element should be rendered with the graphics primitives given by f[region,point].

(RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction])->"name" uses a named function for generating extent elements.

In (RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction])->f, the region argument to f is given as follows:

In (RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction])->f, the point argument to f is given as follows:

OpenersPrimaryExamplesSection(Spacer1)Examples  (3)

OpenersExampleSection0(Spacer1)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]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[DiscretePlot, paclet:ref/DiscretePlot])  ▪  (RefLink[DiscretePlot3D, paclet:ref/DiscretePlot3D])  ▪  (RefLink[ExtentSize, paclet:ref/ExtentSize])  ▪  (RefLink[ExtentMarkers, paclet:ref/ExtentMarkers])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Plotting Options, paclet:guide/PlottingOptions])}})}})