dpm_tools.visualization#

2D/3D Visualization#

This submodule contains functions for 2D and 3D visualization. 3D visualizations are implemented using PyVista.

hist(data[, data2, nbins, write_csv])

Generate a histogram

plot_slice(data[, slice_num, slice_axis])

make_thumbnail(data[, thumb_slice, ...])

make_gif(data[, dpi, save])

Function to make and save a gif

plot_heterogeneity_curve(radii, variances[, ...])

Plot the results of the porosity variance heterogeneity analysis with colored heterogeneous/homogenous zones.

orthogonal_slices(data[, fig, show_slices, ...])

Plots 3 orthogonal slices of a 3D image.

plot_isosurface(data[, fig, ...])

Plots 3D isosurfaces

bounding_box(data[, fig, mesh_kwargs, ...])

Add a bounding box mesh to the Plotter.

plot_glyph(vector_data[, fig, glyph, ...])

Plot glyphs to the Plotter such as arrows, spheres, etc.

plot_streamlines(vector_data[, fig, ...])

Plot streamlines to the Plotter object

plot_scalar_volume(data[, fig, mesh_kwargs, ...])

Plot voxelized surface to the Plotter object

extract_competent_subset(data[, cube_size, ...])

plot_medial_axis(data[, fig, pore_class, ...])

Plots an interactive visual with a medial axis and a 3D isosurface of given data.