Skip to content

Commit

Permalink
fix: rename scale bar to scalar_bar
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed May 31, 2024
1 parent 6a1d402 commit 7025441
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions loopstructuralvisualisation/_3d_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def plot_surface(
vmin: Optional[float] = None,
vmax: Optional[float] = None,
pyvista_kwargs: dict = {},
scale_bar: bool = False,
scalar_bar: bool = False,
slicer: bool = False,
):
"""Add an isosurface of a geological feature to the model
Expand Down Expand Up @@ -105,7 +105,7 @@ def plot_surface(
opacity=opacity,
**pyvista_kwargs,
)
if not scale_bar:
if paint_with is not None and not scalar_bar:
self.remove_scalar_bar('values')

def plot_scalar_field(
Expand Down Expand Up @@ -173,7 +173,7 @@ def plot_fault_displacements(
volume['displacement'] = displacement_value
self.add_mesh(volume, cmap=cmap, **pyvista_kwargs)
if not scalar_bar:
self.remove_scalar_bar('dispalcement')
self.remove_scalar_bar('displacement')

def plot_model_surfaces(
self,
Expand Down

0 comments on commit 7025441

Please sign in to comment.