Skip to content

Commit 0504e62

Browse files
committed
Mode indexing fix
1 parent 2e58100 commit 0504e62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydmd/bopdmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1467,7 +1467,7 @@ def plot_mode_uq(
14671467

14681468
for i, (mode, mode_std) in enumerate(zip(modes.T, modes_std.T)):
14691469
# Plot the average mode.
1470-
plt.subplot(rows, cols, avg_inds[i])
1470+
plt.subplot(rows, cols, avg_inds[i] + 1)
14711471
plt.title(f"Mode {i + 1}")
14721472
if len(modes_shape) == 1:
14731473
# Plot modes in 1-D.
@@ -1483,7 +1483,7 @@ def plot_mode_uq(
14831483
plt.colorbar()
14841484

14851485
# Plot the mode standard deviation.
1486-
plt.subplot(rows, cols, std_inds[i])
1486+
plt.subplot(rows, cols, std_inds[i] + 1)
14871487
plt.title("Mode Standard Deviation")
14881488
if len(modes_shape) == 1:
14891489
# Plot modes in 1-D.

0 commit comments

Comments
 (0)