Skip to content

Commit 9b02489

Browse files
committed
Merge pull request python-control#2 from kdavies4/master
Required for Python 3, since zip returns iterator
2 parents 204f3f9 + 5c600a1 commit 9b02489

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+
for xpt, ypt, omegapt in zip(x[::labelFreq], y[::labelFreq],
249+
omega[::labelFreq]):
249250
# Convert to Hz
250251
f = omegapt/(2*sp.pi)
251252

0 commit comments

Comments
 (0)