WOLFRAM

DiscretePlot3D[f,{i,imin,imax},{j,jmin,jmax}]

generates a plot of f when i runs from imin to imax and j runs from jmin to jmax.

DiscretePlot3D[f,{i,imin,imax,di},{j,jmin,jmax,dj}]

uses steps di and dj.

DiscretePlot3D[f,{i,{i1,,im}},{j,{j1,,jn}}]

uses successive i values i1, , jm and j values j1, , jn.

DiscretePlot3D[{f1,f2,},,]

plots the values of all the fk.

Details and Options

Examples

open allclose all

Basic Examples  (3)Summary of the most common use cases

Plot a bivariate sequence:

Out[1]=1

Associate a region with the points:

Out[1]=1

Plot several sequences:

Out[1]=1

Scope  (12)Survey of the scope of standard use cases

Data and Layouts  (4)

Plot multiple datasets:

Out[1]=1

Use wrappers on individual data, datasets, or collections of datasets:

Out[1]=1

Wrappers can be nested:

Out[2]=2

Override the default tooltips:

Out[1]=1

Use PopupWindow to provide additional drilldown information:

Out[2]=2

Button can be used to trigger any action:

Out[3]=3

Use ScalingFunctions to scale the axes:

Out[1]=1

Labeling and Legending  (3)

Label individual points:

Out[1]=1

Use tooltips instead:

Out[1]=1

Specify label names with LabelingFunction:

Out[1]=1
Out[2]=2

Styling and Appearance  (5)

Use ExtentSize to associate a region with a point:

Out[1]=1

Use an explicit list of styles for the plots:

Out[1]=1

Use any gradient color schemes from ColorData:

Out[2]=2

Style can be used to override styles:

Out[3]=3

Show plot markers:

Out[1]=1

Show extent region boundaries:

Out[1]=1
Out[2]=2

Use a theme with dark background in a high-contrast color scheme:

Out[1]=1

Options  (70)Common values & functionality for each option

ColorFunction  (6)

Color the points by scaled , , or value:

Out[1]=1

Color the surface by scaled , , or value:

Out[1]=1

Color the regions by scaled , , or value:

Out[1]=1

Use a named color gradient:

Out[1]=1

ColorFunction has higher priority than PlotStyle:

Out[1]=1

Use black when two numbers are relatively prime:

Out[1]=1

ColorFunctionScaling  (1)

Color by absolute height:

Out[1]=1

EvaluationMonitor  (1)

Gather the plotted heights:

Show the plot and a histogram of the heights:

Out[2]=2

ExtentElementFunction  (5)

Get a list of built-in settings for ExtentElementFunction:

Out[1]=1

For detailed settings, use Palettes Chart Element Schemes:

Out[1]=1
Out[2]=2

This ChartElementFunction is appropriate to show the global scale:

Out[1]=1

Write a custom ExtentElementFunction:

Out[2]=2

A built-in element function may have options; use Palettes Chart Element Schemes to set them:

Out[1]=1
Out[2]=2

ExtentMarkers  (4)

Do not show the extent edges:

Out[1]=1

Use lines to show the extent edges:

Out[1]=1

Use varying sized tubes to show the extent edges:

Out[1]=1

Place tubes along the front and left edges of the extent region:

Out[1]=1

ExtentSize  (6)

Show heights as points:

Out[1]=1

Draw full regions around the heights:

Out[1]=1

With unevenly spaced points:

Out[2]=2

Use fixed-size regions:

Out[1]=1

With unevenly spaced points:

Out[2]=2

Use sizes relative to the distance between points:

Out[1]=1

With unevenly spaced points:

Out[2]=2

Use equally sized regions that do not overlap:

Out[1]=1

With unevenly spaced points:

Out[2]=2

Control the placement of the region around the points:

Out[1]=1

Filling  (3)

DiscretePlot3D fills to :

Out[1]=1

Turn off filling:

Out[1]=1

Fill to different levels:

Out[1]=1

FillingStyle  (3)

Fill to the bottom with a variety of styles:

Out[1]=1

With expanded point regions:

Out[2]=2

Use different colors above and below the filling level:

Out[1]=1

Only fill below the filling level:

Out[1]=1

Joined  (2)

Join the points into a surface:

Out[1]=1

Combine a surface with extent regions:

Out[1]=1

LabelingFunction  (4)

Put the labels above the points:

Out[1]=1

Put them in a tooltip:

Out[3]=3

Use callouts to label the points:

Out[1]=1

Label the points with their values:

Out[1]=1

Label the points with their indices:

Out[1]=1

LabelingSize  (1)

Specify a maximum size for textual labels:

Out[8]=8

Use the full label:

Out[4]=4

PlotLegends  (6)

Use automatic legends:

Out[1]=1

Specify a list of labels for legends:

Out[1]=1

Use named legends:

Out[1]=1

PlotLegends automatically picks up PlotStyle values:

Out[1]=1

Use Placed to control legend placement:

Out[1]=1

Use SwatchLegend to change legend appearance:

Out[1]=1

PlotMarkers  (4)

Change the size of the default plot markers:

Out[1]=1

Markers are not usually shown when surfaces are used:

Out[1]=1

Use points with surfaces:

Out[1]=1

Use spheres for markers:

Out[1]=1

Vary the size of the spheres:

Out[2]=2

PlotStyle  (7)

Use different style directives:

Out[1]=1

By default, different styles are chosen for multiple functions:

Out[1]=1

Explicitly specify the style for different functions:

Out[1]=1

PlotStyle applies to points, lines, and surfaces:

Out[1]=1
Out[2]=2

PlotStyle can be combined with ColorFunction:

Out[1]=1

PlotStyle can be combined with FillingStyle:

Out[1]=1

FillingStyle by default uses the same style as PlotStyle with transparency:

Out[1]=1

PlotTheme  (4)

Use a theme with simple ticks and grid lines:

Out[1]=1

Change the color scheme:

Out[1]=1

Use a theme with dark background in a high-contrast color scheme:

Out[1]=1

Turn off the ticks:

Out[1]=1

RegionFunction  (4)

Restrict the region plotted:

Out[1]=1

Extended regions are treated as the underlying point without additional clipping:

Out[1]=1

Regions can have several unconnected components:

Out[1]=1

Define regions using logical combinations of constraints:

Out[1]=1

ScalingFunctions  (9)

By default, plots have linear scales in each direction:

Out[1]=1

Use a log scale in the direction:

Out[1]=1

Use a linear scale in the direction that shows smaller numbers at the front:

Out[1]=1

Use a reciprocal scale in the direction:

Out[1]=1

Use different scales in the and directions:

Out[1]=1

Reverse the axis without changing the axis:

Out[1]=1

Use a scale defined by a function and its inverse:

Out[1]=1

Positions in Ticks and FaceGrids are automatically scaled:

Out[1]=1

PlotRange is automatically scaled:

Out[1]=1

Applications  (2)Sample problems that can be solved with this function

Visualize properties of discrete distributions, such as probability density function:

Out[1]=1

Cumulative distribution function:

Out[2]=2

Survival function:

Out[3]=3

Approximate the volume under a surface using Riemann sums:

Out[1]=1
Out[2]=2
Out[3]=3

Properties & Relations  (4)Properties of the function, and connections to other functions

Plot3D generates continuous surfaces:

Out[1]=1

Use ListPointPlot3D to plot lists of values:

Out[1]=1

Use BarChart3D to show bars for lists of values:

Out[1]=1

Use DiscretePlot to plot functions of single discrete variables:

Out[1]=1
Wolfram Research (2010), DiscretePlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscretePlot3D.html (updated 2019).
Wolfram Research (2010), DiscretePlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscretePlot3D.html (updated 2019).

Text

Wolfram Research (2010), DiscretePlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscretePlot3D.html (updated 2019).

Wolfram Research (2010), DiscretePlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/DiscretePlot3D.html (updated 2019).

CMS

Wolfram Language. 2010. "DiscretePlot3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/DiscretePlot3D.html.

Wolfram Language. 2010. "DiscretePlot3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/DiscretePlot3D.html.

APA

Wolfram Language. (2010). DiscretePlot3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiscretePlot3D.html

Wolfram Language. (2010). DiscretePlot3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiscretePlot3D.html

BibTeX

@misc{reference.wolfram_2025_discreteplot3d, author="Wolfram Research", title="{DiscretePlot3D}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/DiscretePlot3D.html}", note=[Accessed: 09-July-2025 ]}

@misc{reference.wolfram_2025_discreteplot3d, author="Wolfram Research", title="{DiscretePlot3D}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/DiscretePlot3D.html}", note=[Accessed: 09-July-2025 ]}

BibLaTeX

@online{reference.wolfram_2025_discreteplot3d, organization={Wolfram Research}, title={DiscretePlot3D}, year={2019}, url={https://reference.wolfram.com/language/ref/DiscretePlot3D.html}, note=[Accessed: 09-July-2025 ]}

@online{reference.wolfram_2025_discreteplot3d, organization={Wolfram Research}, title={DiscretePlot3D}, year={2019}, url={https://reference.wolfram.com/language/ref/DiscretePlot3D.html}, note=[Accessed: 09-July-2025 ]}