invert4geom.plot_prism_layers#
- plot_prism_layers(prisms, cmap='viridis', color_by='density', region=None, opacity=1, zscale=75, log_scale=False, clip_box=False, box_buffer=5000.0, show_axes=True, camera_position='xz', elevation=20, azimuth=-25, zoom=1.2, backend='static', cbar_args=None, constant_colors=None, show_edges=False)[source]#
show prism layers using PyVista
- Parameters:
prisms (list | xarray.Dataset) – either a single harmonica prism layer of list of layers,
cmap (str, optional) – matplotlib colorscale to use, by default “viridis”
color_by (str, optional) – either use a variable of the prism_layer dataset, typically ‘density’ or ‘thickness’, or choose ‘constant’ to have each layer colored by a unique color use kwarg colors to alter these colors, by default is “density”
region (tuple[float, float, float, float], optional) – region to clip the model to, by default None
clip_box (bool, optional) – clip a corner out of the model to help visualize, by default False
opacity (
float)zscale (
float)log_scale (
bool)box_buffer (
float)show_axes (
bool)camera_position (
str)elevation (
float)azimuth (
float)zoom (
float)backend (
str)show_edges (
bool)
- Return type: