Skip to content

Commit

Permalink
feat: add plotting options to show_prism_layers
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 22, 2024
1 parent 16bf313 commit 8c1874e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/invert4geom/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,6 +894,7 @@ def show_prism_layers(
style=kwargs.get("style", "surface"),
show_edges=kwargs.get("show_edges", False),
opacity=trans,
scalar_bar_args=kwargs.get("scalar_bar_args", None),
)
else:
plotter.add_mesh(
Expand All @@ -906,6 +907,7 @@ def show_prism_layers(
show_edges=kwargs.get("show_edges", False),
log_scale=kwargs.get("log_scale", True),
opacity=trans,
scalar_bar_args=kwargs.get("scalar_bar_args", None),
)
plotter.set_scale(
zscale=kwargs.get("zscale", 75)
Expand All @@ -918,6 +920,7 @@ def show_prism_layers(
# Add a ceiling light
add_light(plotter, prisms[i]) # pylint: disable=undefined-loop-variable

plotter.show_axes()
if kwargs.get("show_axes", True):
plotter.show_axes()

plotter.show(jupyter_backend=kwargs.get("backend", "client"))

0 comments on commit 8c1874e

Please sign in to comment.