Skip to content

Commit

Permalink
Update _plot_3d.py
Browse files Browse the repository at this point in the history
  • Loading branch information
BC-Chang authored Dec 4, 2024
1 parent 8cf150e commit b904b10
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpm_tools/visualization/_plot_3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def plot_isosurface(data, fig: pv.Plotter = None, show_isosurface: list = None,
if show_isosurface is None:
show_isosurface = [(np.amax(data.scalar) + np.amin(data.scalar)) / 2]
warnings.warn("\n\nNo value provided for \'show_isosurfaces\' keyword. " +
f"Using the midpoint of the isosurface array instead ({np.amin(data.scalar)},{
np.amax(data.scalar)}).\n",
f"Using the midpoint of the isosurface array instead ({np.amin(data.scalar)},\
{np.amax(data.scalar)}).\n",
stacklevel=2)

contours = pv_image_obj.contour(isosurfaces=show_isosurface)
Expand Down

0 comments on commit b904b10

Please sign in to comment.