Skip to content

Commit da1c43c

Browse files
committed
Fixed inverted x-axis on 3d-plots
1 parent 18dbb47 commit da1c43c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## v0.16.1
2+
- Fixed inverted x-axis on 3d-plots
13
## v0.16.0
24
- Added angular power spectrum calculation, plot and Std parameter
35
- Fixed bug with XYZ files that have comma decimals

surfalize/plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ def plot_3d(surface, vertical_angle=50, horizontal_angle=0, zoom=1, cmap='jet',
112112

113113
# Create a PyVista grid
114114
grid = pv.StructuredGrid(x, y, z)
115-
grid.point_data["height"] = z.T.ravel()
115+
grid.point_data["height"] = np.rot90(z).ravel()
116116

117117
# Initialize the PyVista plotter
118118
plotter = pv.Plotter(off_screen=not interactive, window_size=None if interactive else (1920, 1080))

0 commit comments

Comments
 (0)