DiscretePlot3D
DiscretePlot3D[expr,{i,imin,imax},{j,jmin,jmax}]
generates a plot of the values of expr when i runs from imin to imax and j runs from jmin to jmax.
DiscretePlot3D[expr,{i,imin,imax,di},{j,jmin,jmax,dj}]
uses steps di and dj.
DiscretePlot3D[expr,{i,{i1,i2,…}},{j,{j1,j2,…}}]
uses successive i values i1, i2, … and j values j1, j2, ….
DiscretePlot3D[{expr1,expr2,…},…,…]
plots the values of all the expri.
Details and Options




- DiscretePlot3D uses the standard Wolfram Language iterator specification.
- DiscretePlot3D plots the variable i along the
axis and j along the
axis.
- DiscretePlot3D treats the variables i and j as local, effectively using Block.
- DiscretePlot3D has attribute HoldAll, and evaluates expr only after assigning specific numerical values to i and j.
- In some cases, it may be more efficient to use Evaluate to evaluate expr symbolically before specific numerical values are assigned to i and j.
- The precision used in evaluating expr is the minimum precision used in the iterators.
- The form w[expr] provides a wrapper w to be applied to the resulting graphics primitives.
- The following wrappers can be used:
-
Annotation[expr,label] provide an annotation Button[expr,action] define an action to execute when the element is clicked Callout[expr,label] label the element with a callout Callout[expr,label,pos] place the callout at relative position pos EventHandler[expr,…] define a general event handler for the element Hyperlink[expr,uri] make the element act as a hyperlink Labeled[expr,label] make the data a hyperlink Labeled[expr,label,pos] place the label at relative position pos Legended[expr,label] identify the element in a legend PopupWindow[expr,cont] attach a popup window to the element StatusArea[expr,label] display in the status area when the element is moused over Style[expr,opts] show the element using the specified styles Tooltip[expr,label] attach an arbitrary tooltip to the element - Callout and Labeled can use the following positions pos:
-
Automatic automatically placed labels Above, Below, Before, After positions around the data x near the data at a position x {s,Above},{s,Below},… relative position at position s along the data {pos,epos} epos in label placed at relative position pos of the data - Labels that depend on {i,j} will be applied for each plot element, while labels that are independent of {i,j} will only occur once.
- DiscretePlot3D has the same options as Graphics3D, with the following additions and changes:
-
Axes True whether to draw axes BoxRatios {1,1,0.4} bounding 3D box ratios ClippingStyle Automatic how to draw clipped parts of surfaces ColorFunction Automatic how to determine the color of surfaces ColorFunctionScaling True whether to scale arguments to ColorFunction EvaluationMonitor None expression to evaluate at every function evaluation ExtentElementFunction Automatic how to generate raw graphics for extent fills ExtentMarkers None markers to use for extent boundaries ExtentSize Automatic width and depth to extend from plot point Filling Automatic filling under each surface FillingStyle Opacity[0.5] style to use for filling Joined False whether to join LabelingFunction Automatic how to label points LabelingSize Automatic maximum size of callouts and labels Method Automatic the methods to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLegends None legends for sequences PlotMarkers None markers to use for plot points PlotRange {Full,Full,Automatic} the range of or other values to include
PlotStyle Automatic graphics directives for the style for each surface PlotTheme $PlotTheme overall theme for the plot RegionFunction (True&) how to determine whether a point should be included ScalingFunctions None how to scale individual coordinates WorkingPrecision MachinePrecision the precision used in internal computations - The arguments supplied to ColorFunction are
,
,
.
- With the setting ExtentSize->{{sxl,sxr},{syl,syr}} a horizontal plane is drawn around each plot point extending sxl to the left and sxr to the right along the
axis and syl to the left and syr to the right along the
axis. With ExtentMarkers->{{mxl,mxr},{myl,myr}}, the markers mxl and mxr will be used as left and right markers along the
axis and myl and myr as left and right markers along the
axis.
- The arguments supplied to ExtentElementFunction are the element region {{xmin,xmax},{ymin,ymax},{zmin,zmax}} and the sample point {xi,yi,zi}.
- With the setting ExtentSize->None, xmin is equal to xmax and ymin is equal to ymax. With the setting Filling->None, zmin is equal to zmax.
- Possible settings for PlotMarkers include:
-
None omit markers when drawing surfaces "Point" use 2D points as markers "Sphere" use 3D spheres as markers {"Point",s},{"Sphere",s} specify the size s of the markers {spec1,spec2,…} use specification speci for expression expri - The marker size s can be a symbolic value such as Tiny, Small, Medium and Large or a scaled fraction of the width of the graphic.
- Possible settings for ScalingFunctions include:
-
sz scale the z axis {sx,sy} scale x and y axes {sx,sy,sz} scale x, y and z axes - Each scaling function si is either a string "scale" or {g,g-1}, where g-1 is the inverse of g.
Examples
open allclose allBasic Examples (3)
Scope (12)
Data and Layouts (4)
Use wrappers on individual data, datasets, or collections of datasets:
Override the default tooltips:
Use PopupWindow to provide additional drilldown information:
Button can be used to trigger any action:
Use ScalingFunctions to scale the axes:
Labeling and Legending (3)
Styling and Appearance (5)
Use ExtentSize to associate a region with a point:
Use an explicit list of styles for the plots:
Use any gradient color schemes from ColorData:
Style can be used to override styles:
Show extent region boundaries:
Use a theme with dark background in a high-contrast color scheme:
Options (70)
ColorFunction (6)
Color the points by scaled ,
, or
value:
Color the surface by scaled ,
, or
value:
Color the regions by scaled ,
, or
value:
ColorFunction has higher priority than PlotStyle:
ExtentElementFunction (5)
Get a list of built-in settings for ExtentElementFunction:
For detailed settings, use Palettes ▶ Chart Element Schemes:
This ChartElementFunction is appropriate to show the global scale:
Write a custom ExtentElementFunction:
A built-in element function may have options; use Palettes ▶ Chart Element Schemes to set them:
ExtentMarkers (4)
ExtentSize (6)
Filling (3)
FillingStyle (3)
LabelingFunction (4)
PlotLegends (6)
Specify a list of labels for legends:
PlotLegends automatically picks up PlotStyle values:
Use Placed to control legend placement:
Use SwatchLegend to change legend appearance:
PlotMarkers (4)
PlotStyle (7)
Use different style directives:
By default, different styles are chosen for multiple functions:
Explicitly specify the style for different functions:
PlotStyle applies to points, lines, and surfaces:
PlotStyle can be combined with ColorFunction:
PlotStyle can be combined with FillingStyle:
FillingStyle by default uses the same style as PlotStyle with transparency:
PlotTheme (4)
RegionFunction (4)
ScalingFunctions (9)
By default, plots have linear scales in each direction:
Use a log scale in the direction:
Use a linear scale in the direction that shows smaller numbers at the front:
Use a reciprocal scale in the direction:
Use different scales in the and
directions:
Reverse the axis without changing the
axis:
Use a scale defined by a function and its inverse:
Positions in Ticks and FaceGrids are automatically scaled:
PlotRange is automatically scaled:
Applications (2)
Properties & Relations (4)
Plot3D generates continuous surfaces:
Use ListPointPlot3D to plot lists of values:
Use BarChart3D to show bars for lists of values:
Use DiscretePlot to plot functions of single discrete variables:
Text
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.
APA
Wolfram Language. (2010). DiscretePlot3D. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/DiscretePlot3D.html