Skip to content

Commit 309a095

Browse files
committed
Update mode_uq shaping
1 parent e74041c commit 309a095

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pydmd/bopdmd.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,7 +1524,7 @@ def plot_mode_uq(
15241524
if len(modes_shape) == 2:
15251525
if y is None:
15261526
y = np.arange(modes_shape[1])
1527-
ygrid, xgrid = np.meshgrid(y, x)
1527+
xgrid, ygrid = np.meshgrid(x, y)
15281528

15291529
# Collapse the results across time-delays.
15301530
if d > 1:
@@ -1566,7 +1566,7 @@ def plot_mode_uq(
15661566
plt.pcolormesh(
15671567
xgrid,
15681568
ygrid,
1569-
mode.reshape(*modes_shape, order=order).real,
1569+
mode.reshape(xgrid.shape, order=order).real,
15701570
cmap="viridis",
15711571
)
15721572
plt.colorbar()
@@ -1582,7 +1582,7 @@ def plot_mode_uq(
15821582
plt.pcolormesh(
15831583
xgrid,
15841584
ygrid,
1585-
mode_std.reshape(*modes_shape, order=order),
1585+
mode_std.reshape(xgrid.shape, order=order),
15861586
cmap="inferno",
15871587
)
15881588
plt.colorbar()

0 commit comments

Comments
 (0)