We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be911f8 commit 92d172fCopy full SHA for 92d172f
control/freqplot.py
@@ -324,7 +324,7 @@ def gen_zero_centered_series(val_min, val_max, period):
324
return mags, phases, omegas
325
326
327
-def nyquist_plot(syslist, omega=None, Plot=True, color='b',
+def nyquist_plot(syslist, omega=None, Plot=True, color=None,
328
labelFreq=0, *args, **kwargs):
329
"""
330
Nyquist plot for a system
@@ -393,8 +393,9 @@ def nyquist_plot(syslist, omega=None, Plot=True, color='b',
393
394
if Plot:
395
# Plot the primary curve and mirror image
396
- plt.plot(x, y, '-', color=color, *args, **kwargs)
397
- plt.plot(x, -y, '--', color=color, *args, **kwargs)
+ p = plt.plot(x, y, '-', color=color, *args, **kwargs)
+ c = p[0].get_color()
398
+ plt.plot(x, -y, '-', color=c, *args, **kwargs)
399
# Mark the -1 point
400
plt.plot([-1], [0], 'r+')
401
0 commit comments