Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bugfixes
  • Loading branch information
sawyerbfuller committed Nov 21, 2021
commit 372efb4ac0ea07c3c550ecc09e0e6676b9afe944
4 changes: 2 additions & 2 deletions control/freqplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ def gen_zero_centered_series(val_min, val_max, period):
'nyquist.mirror_style': '--',
'nyquist.arrows': 2,
'nyquist.arrow_size': 8,
'nyquist.indent_radius': 1e-3,
'nyquist.indent_radius': 1e-2,
'nyquist.maximum_magnitude': 5,
'nyquist.indent_direction': 'right',
}
Expand Down Expand Up @@ -899,7 +899,7 @@ def _add_arrows_to_line2D(
raise ValueError("expected a matplotlib.lines.Line2D object")
x, y = line.get_xdata(), line.get_ydata()
x, y = x[np.isfinite(x)], y[np.isfinite(x)]
if len(x) == 0:
if len(x) in (0, 1):
return []
arrow_kw = {
"arrowstyle": arrowstyle,
Expand Down