plot_dgrid_as_volume

alternate Optional Plotly Volume view of a distance grid; mesh isosurfaces are the usual choice. Use plot_surface_dgrid instead.

visualize.plot_dgrid_as_volume(
    dgrid,
    mat_atoms,
    original_shape=None,
    num_isosurfaces=5,
    cscale='viridis',
    opacity=0.1,
)

Visualise a distance grid (optionally padded in ‘wrap’ mode).

Parameters

dgrid : np.ndarray 3-D array holding the (possibly padded) distance grid. mat_atoms : ASE Atoms object Provides the unit-cell vectors. original_shape : tuple[int,int,int] or None Shape of the un-padded grid. If None, the grid is assumed NOT padded. num_isosurfaces : int How many iso-value surfaces to draw.