Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 2 additions & 2 deletions control/freqplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ def bode_plot(syslist, omega=None, dB=None, Hz=None, deg=None,
pltline = ax_mag.semilogx(omega_plot, 20 * np.log10(mag), *args, **kwargs)
else:
pltline = ax_mag.loglog(omega_plot, mag, *args, **kwargs)
plt.hold(True);

if nyquistfrq_plot:
ax_mag.axvline(nyquistfrq_plot, color=pltline[0].get_color())

Expand All @@ -191,7 +191,7 @@ def bode_plot(syslist, omega=None, dB=None, Hz=None, deg=None,
else:
phase_plot = phase
ax_phase.semilogx(omega_plot, phase_plot, *args, **kwargs)
ax_phase.hold(True);

if nyquistfrq_plot:
ax_phase.axvline(nyquistfrq_plot, color=pltline[0].get_color())

Expand Down
2 changes: 1 addition & 1 deletion control/phaseplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def phase_plot(odefun, X=None, Y=None, scale=1, X0=None, T=None,
for i in range(nr):
state = odeint(odefun, X0[i], TSPAN, args=parms);
time = TSPAN
mpl.hold(True);

mpl.plot(state[:,0], state[:,1])
#! TODO: add back in colors for stream lines
# PP_stream_color(np.mod(i-1, len(PP_stream_color))+1));
Expand Down