({{, (RefLink[ExtentSize, paclet:ref/ExtentSize]) 
is an option to (RefLink[DiscretePlot, paclet:ref/DiscretePlot]) and (RefLink[DiscretePlot3D, paclet:ref/DiscretePlot3D]) that specifies how far to extend out from each plot point. }})

OpenersNotesSection(Spacer1)Details

The following settings can be used:

The sizes (Subscript[s, i]) can be either in ordinary plot coordinates or (RefLink[Scaled, paclet:ref/Scaled])[s] as a fraction of distance between neighboring points.

In one dimension we have the equivalent specifications:

In two dimensions, (RefLink[ExtentSize, paclet:ref/ExtentSize])->spec is equivalent to (RefLink[ExtentSize, paclet:ref/ExtentSize])->{spec,spec}, using the same extent specification along both the x axis and y axis.

OpenersPrimaryExamplesSection(Spacer1)Examples  (6)

OpenersExampleSection0(Spacer1)Basic Examples  (6)

Specify sizes that fill the regions between neighboring points:

Table[DiscretePlot[t,{t,1,5},PlotMarkers->{"Point",Large},PlotRange->{{0,6},{0,6}},ExtentSize->size,PlotLabel->size],{size,{Left,Right,Full}}]

Table[DiscretePlot3D[s+t,{s,1,5},{t,1,5},PlotMarkers->{"Sphere",Large},PlotRange->{{0,6},{0,6},All},ExtentSize->size,PlotLabel->size],{size,{Left,Right,Full}}]

Use absolute sizes centered on the plot point:

Table[DiscretePlot[t,{t,1,5},PlotMarkers->{"Point",Large},PlotRange->{{0,6},{0,6}},ExtentSize->size,PlotLabel->size],{size,{0.1,0.25,0.5}}]

Table[DiscretePlot3D[s+t,{s,1,5},{t,1,5},PlotMarkers->{"Sphere",Large},PlotRange->{{0,6},{0,6},All},ExtentSize->size,PlotLabel->size],{size,{0.1,0.25,0.5}}]

Use different sizes on either side of the plot point:

Table[DiscretePlot[t,{t,1,5},PlotMarkers->{"Point",Large},PlotRange->{{0,6},{0,6}},ExtentSize->{3/4-size,size},PlotLabel->{3/4-size,size}],{size,{1/4,1/2,3/4}}]

Use fractions of the distance to neighboring points:

Table[DiscretePlot[t,{t,Range[5]},PlotMarkers->{"Point",Large},ExtentSize->Scaled[size],PlotLabel->Scaled[size]],{size,{0.5,0.75,1}}]

Table[DiscretePlot3D[s+t,{s,1,5},{t,1,5},PlotMarkers->{"Sphere",Large},ExtentSize->Scaled[size],PlotLabel->Scaled[size]],{size,{0.5,0.75,1}}]

With unevenly spaced points:

Table[DiscretePlot[t,{t,Prime[Range[5]]},PlotMarkers->{"Point",Large},ExtentSize->Scaled[size],PlotLabel->Scaled[size]],{size,{0.5,0.75,1}}]

Table[DiscretePlot3D[s+t,{s,Prime[Range[4]]},{t,Prime[Range[4]]},PlotMarkers->{"Sphere",Large},ExtentSize->Scaled[size],PlotLabel->Scaled[size]],{size,{0.5,0.75,1}}]

(RefLink[ExtentSize, paclet:ref/ExtentSize])->(RefLink[All, paclet:ref/All]) uses the largest absolute size that will not cause overlapping regions:

DiscretePlot[t,{t,Prime[Range[5]]},PlotMarkers->{"Point",Large},PlotRange->{Full,{0,12}},ExtentSize->All]

DiscretePlot3D[s+t,{s,Prime[Range[4]]},{t,Prime[Range[4]]},PlotMarkers->{"Sphere",Large},ExtentSize->All]

(RefLink[ExtentSize, paclet:ref/ExtentSize]) in 3D accepts {{left,right},{front,back}}:

DiscretePlot3D[s+t,{s,5},{t,Prime[Range[5]]},PlotMarkers->{"Sphere",Large},ExtentSize->{{None,Full},{0.5,Scaled[0.3]}}]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[ExtentMarkers, paclet:ref/ExtentMarkers])  ▪  (RefLink[ExtentElementFunction, paclet:ref/ExtentElementFunction])  ▪  (RefLink[PlotMarkers, paclet:ref/PlotMarkers])}})}})

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