Skip to content

Commit 76b6df5

Browse files
committed
Fix for python3, since zip returns iterator
1 parent 01bf08e commit 76b6df5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

control/freqplot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ def nyquist_plot(syslist, omega=None, Plot=True, color='b',
245245

246246
# Label the frequencies of the points
247247
if (labelFreq):
248-
for xpt, ypt, omegapt in zip(x, y, omega)[::labelFreq]:
248+
ind = slice(None, None, labelFreq)
249+
for xpt, ypt, omegapt in zip(x[ind], y[ind], omega[ind]):
249250
# Convert to Hz
250251
f = omegapt/(2*sp.pi)
251252

0 commit comments

Comments
 (0)