Skip to content

Commit 372efb4

Browse files
committed
bugfixes
1 parent 5b047f7 commit 372efb4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

control/freqplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ def gen_zero_centered_series(val_min, val_max, period):
522522
'nyquist.mirror_style': '--',
523523
'nyquist.arrows': 2,
524524
'nyquist.arrow_size': 8,
525-
'nyquist.indent_radius': 1e-3,
525+
'nyquist.indent_radius': 1e-2,
526526
'nyquist.maximum_magnitude': 5,
527527
'nyquist.indent_direction': 'right',
528528
}
@@ -899,7 +899,7 @@ def _add_arrows_to_line2D(
899899
raise ValueError("expected a matplotlib.lines.Line2D object")
900900
x, y = line.get_xdata(), line.get_ydata()
901901
x, y = x[np.isfinite(x)], y[np.isfinite(x)]
902-
if len(x) == 0:
902+
if len(x) in (0, 1):
903903
return []
904904
arrow_kw = {
905905
"arrowstyle": arrowstyle,

0 commit comments

Comments
 (0)