File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -1516,7 +1516,7 @@ def plot_eig_uq(
15161516 Plot BOP-DMD eigenvalues against 1 and 2 standard deviations.
15171517
15181518 :param eigs_true: True continuous-time eigenvalues, if known.
1519- :type eigs_true: np.ndarray
1519+ :type eigs_true: np.ndarray or iterable
15201520 :param xlim: Desired limits for the x-axis.
15211521 :type xlim: iterable
15221522 :param ylim: Desired limits for the y-axis.
@@ -1536,12 +1536,15 @@ def plot_eig_uq(
15361536 if self .eigenvalues_std is None :
15371537 raise ValueError ("No UQ metrics to plot." )
15381538
1539+ if eigs_true is not None :
1540+ eigs_true = np .array (eigs_true )
1541+
15391542 fig , ax = plt .subplots (figsize = figsize , dpi = dpi )
15401543 plt .title ("DMD Eigenvalues" )
15411544
15421545 if draw_axes :
1543- ax .axhline (y = 0 , c = "k" )
1544- ax .axvline (x = 0 , c = "k" )
1546+ ax .axhline (y = 0 , c = "k" , lw = 1 )
1547+ ax .axvline (x = 0 , c = "k" , lw = 1 )
15451548
15461549 if flip_axes :
15471550 eigs = self .eigs .imag + 1j * self .eigs .real
You can’t perform that action at this time.
0 commit comments