Skip to content

Commit c42f03c

Browse files
committed
[ENH] Add support for transformed extent in 3D plotting
Modified the 3D plotting API to dynamically handle transformed extents when `transformed_data` is enabled. Prevents mismatches in extent computation for enhanced flexibility in visualization.
1 parent beca315 commit c42f03c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gempy_viewer/API/_plot_3d_API.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ def plot_3d(
126126
else:
127127
solutions_raw_arrays = model.solutions.raw_arrays
128128

129-
extent: np.ndarray = model.grid.extent
130-
129+
130+
extent = model.grid.extent if transformed_data is False else model.extent_transformed_transformed_by_input
131131
gempy_vista = GemPyToVista(
132132
extent=extent,
133133
plotter_type=plotter_type,

0 commit comments

Comments
 (0)