We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 47a860c + ebb668b commit 96abe74Copy full SHA for 96abe74
pydmd/plotter.py
@@ -899,7 +899,7 @@ def plot_summary(
899
if len(snapshots_shape) == 2:
900
if y is None:
901
y = np.arange(snapshots_shape[1])
902
- ygrid, xgrid = np.meshgrid(y, x)
+ xgrid, ygrid = np.meshgrid(x, y)
903
904
# PLOTS 4-6: Plot the DMD modes.
905
for i, (ax, idx) in enumerate(zip(mode_axes, index_modes)):
@@ -913,7 +913,7 @@ def plot_summary(
913
ax.plot(x, lead_modes[:, idx].real, c=mode_color)
914
else:
915
# Plot modes in 2-D.
916
- mode = lead_modes[:, idx].reshape(*snapshots_shape, order=order)
+ mode = lead_modes[:, idx].reshape(xgrid.shape, order=order)
917
vmax = np.abs(mode.real).max()
918
im = ax.pcolormesh(
919
xgrid,
0 commit comments