plot_electrostatic_isosurfaces

alternate Single Plotly mesh trace for electrostatic potential isosurfaces with PBC-aware scaling.

visualize.plot_electrostatic_isosurfaces(
    potential_V,
    atoms,
    isovals=None,
    num_isosurfaces=10,
    cscale='viridis',
    step=1,
    base_opacity=0.3,
)

Return a Plotly mesh trace for electrostatic potential isosurfaces with PBC-aware scaling.

Parameters

Name Type Description Default
potential_V 3D array of potential values in volts required
cell Cell matrix required
atoms ASE Atoms object required
step Step size for marching cubes algorithm. Higher values result in coarser surfaces. 1
base_opacity Base opacity for the surfaces. Adjust this to make surfaces more or less transparent. 0.3

Returns

Name Type Description
A single combined Plotly Mesh3d trace