ListSliceDensityPlot3D

ListSliceDensityPlot3D[farr,surf]

generates a density plot of the three-dimensional farr of values sliced to the surface surf.

ListSliceDensityPlot3D[{{x1,y1,z1,f1},{x2,y2,z2,f2},},surf]

generates a slice density plot for the values fi at points {xi,yi,zi}.

ListSliceDensityPlot3D[,{surf1,surf2,}]

generates slice density plots over several slices surf1, surf2, .

Details and Options

Examples

open allclose all

Basic Examples  (2)

Plot the density for an array of values over a set of surfaces:

Plot the density for an array of values on the surface :

Scope  (24)

Surfaces  (9)

Generate a density plot over standard slice surfaces:

Standard axis-aligned stacked slice surfaces:

Standard boundary surfaces:

Plot the densities over a half plane:

Plotting over a volume primitive is equivalent to plotting over RegionBoundary[reg]:

Plot the densities over the surface :

Plot the densities over multiple surfaces:

Specify the number of stack planes:

Specify the cutting angle for a center-cut sphere slice:

Data  (8)

For regular data consisting of values, the , , and data reflects its positions in the array:

Provide explicit , , and data ranges by using DataRange:

Plot interpolated densities from irregular data consisting of (, , , ) tuples:

Show the points where the data values are provided:

Plot the density for an array of values given by SparseArray:

Plot the density for an array of values given by QuantityArray:

Use PlotPoints to control adaptive sampling of slice surfaces:

Use RegionFunction to expose obscured slices:

Scale the x axis in a plot:

Reverse the direction of the z axis:

Presentation  (7)

Use PlotTheme to immediately get overall styling:

Use PlotLegends to get a color bar for the different values:

Control the display of axes with Axes:

Label axes using AxesLabel and the whole plot using PlotLabel:

Color the plot by the function values with ColorFunction:

Style the slice surface boundaries with BoundaryStyle:

TargetUnits specifies which units to use in the visualization:

Options  (33)

BoundaryStyle  (1)

Style the slice surface boundaries:

BoxRatios  (3)

By default, the edges of the bounding box have the same length:

Use BoxRatios->Automatic to show the natural scale of the 3D coordinate values:

Use custom length ratios for each side of the bounding box:

ClippingStyle  (2)

Color clipped regions:

Remove clipped regions with None:

ColorFunction  (3)

Color the slice surfaces according to the values:

Use a named color gradient available in ColorData:

Use red when :

ColorFunctionScaling  (2)

By default, scaled values are used:

Use ColorFunctionScaling->False to get access to unscaled f values:

DataRange  (2)

By default, the data range is taken to be the dimension of the array:

Explicitly specify the data range:

PerformanceGoal  (2)

Generate a higher-quality plot:

Emphasize performance, possibly at the cost of quality:

PlotLegends  (3)

Show a legend for the densities:

PlotLegends automatically matches the color function:

Control placement of the legend with Placed:

PlotPoints  (1)

Use PlotPoints to determine sampling of slice surfaces:

PlotRange  (3)

Show All densities by default:

Show a select range:

Show a select range including the values:

PlotTheme  (3)

Use a theme with detailed grid lines, ticks, and legends:

Override PlotTheme styles by explicitly setting options:

Compare different plot themes:

RegionFunction  (2)

Include only the densities where or :

Include only the contours where :

ScalingFunctions  (5)

By default, plots have linear scales in all directions:

Create a plot with a log-scaled axis:

Use ScalingFunctions to scale to reverse the coordinate direction in the direction:

Use a scale defined by a function and its inverse:

Scaling functions are applied to slices that are defined in terms of the variables:

Named slice surfaces are not distorted by scaling functions:

TargetUnits  (1)

Units specified by QuantityArray are converted to those specified by TargetUnits:

Applications  (9)

Basic Data  (4)

Plot density slices of data generated by :

Densities of the data generated from and on a sphere:

Data generated from and :

Data generated from and :

Data from and :

Data from and :

Data from , product of univariate functions:

Data from and , univariate and bivariate functions:

Plot density slices of the function , a trivariate function:

Plot contour slices of a sum of exponentials sum_ialpha_i exp(-TemplateBox[{{p, -, {p, _, i}}}, Norm]^2):

Pick the points randomly in a box and plot contour slices from them:

Compare with other ways of visualizing:

Show them together:

Simulation Data  (3)

Plot slices of a probability density function of three variables:

Sample and plot the function:

Simulate the distribution and generate points:

Aggregate simulation data using histogramming:

Generate a Menger sponge array and plot contour slices from it:

Simulate a discrete diffusion model of a two-dimensional array of random values by averaging values of a radius-1 neighborhood in the array and plot density slices:

Time evolves along the axis, with snapshots at times 1, 3, and 7:

Empirical Data  (2)

Bin the position of atoms in a protein and plot density slices from it:

Show the concentration of atoms with the axes in picometers:

Visualize MRI data from a brain:

Properties & Relations  (5)

Use ListSliceContourPlot3D for contours on surfaces:

Use ListDensityPlot3D for full volume visualization of the data values:

Use ListContourPlot3D for constant value surfaces:

Use SliceDensityPlot3D for functions:

Use ListDensityPlot for density plots in 2D:

Possible Issues  (1)

Slice surfaces with a constant value may appear noisy:

The function is constant on the chosen slice surface:

Choosing a different slice surface gives a reasonable picture of the function:

Wolfram Research (2015), ListSliceDensityPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/ListSliceDensityPlot3D.html (updated 2022).

Text

Wolfram Research (2015), ListSliceDensityPlot3D, Wolfram Language function, https://reference.wolfram.com/language/ref/ListSliceDensityPlot3D.html (updated 2022).

CMS

Wolfram Language. 2015. "ListSliceDensityPlot3D." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2022. https://reference.wolfram.com/language/ref/ListSliceDensityPlot3D.html.

APA

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

BibTeX

@misc{reference.wolfram_2024_listslicedensityplot3d, author="Wolfram Research", title="{ListSliceDensityPlot3D}", year="2022", howpublished="\url{https://reference.wolfram.com/language/ref/ListSliceDensityPlot3D.html}", note=[Accessed: 22-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_listslicedensityplot3d, organization={Wolfram Research}, title={ListSliceDensityPlot3D}, year={2022}, url={https://reference.wolfram.com/language/ref/ListSliceDensityPlot3D.html}, note=[Accessed: 22-December-2024 ]}