Skip to content

Commit 0e9d647

Browse files
committed
Correctly cut off axes
1 parent 216491c commit 0e9d647

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
@@ -1460,10 +1460,10 @@ def plot_mode_uq(
14601460

14611461
rows = 2 * int(np.ceil(modes.shape[-1] / cols))
14621462
fig, axes = plt.subplots(rows, cols, figsize=figsize, dpi=dpi)
1463-
print(axes)
1464-
print(axes[::2])
14651463
avg_axes = [ax for axes_list in axes[::2] for ax in axes_list]
14661464
std_axes = [ax for axes_list in axes[1::2] for ax in axes_list]
1465+
avg_axes = avg_axes[:modes.shape[-1]]
1466+
std_axes = std_axes[:modes.shape[-1]]
14671467

14681468
for i, (ax_avg, ax_std, mode, mode_std) in enumerate(
14691469
zip(avg_axes, std_axes, modes.T, modes_std.T)

0 commit comments

Comments
 (0)