Skip to content
Merged
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
Tweaked axis lines and zero/pole markers.
(cherry picked from commit 382b4e9)
  • Loading branch information
Victor
Victor committed Feb 19, 2018
commit 3d0bf039c4715f2477b7fd7eccab00b3bf830639
8 changes: 4 additions & 4 deletions control/pzmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ def pzmap(sys, Plot=True, title='Pole Zero Map'):

# Plot the locations of the poles and zeros
if len(poles) > 0:
plt.scatter(real(poles), imag(poles), s=50, marker='x')
plt.scatter(real(poles), imag(poles), s=50, marker='x', facecolors='k')
if len(zeros) > 0:
plt.scatter(real(zeros), imag(zeros), s=50, marker='o',
facecolors='none')
facecolors='none', edgecolors='k')
# Add axes
#Somewhat silly workaround
plt.axhline(y=0, color='black')
plt.axvline(x=0, color='black')
plt.axhline(y=0, color='black', lw=1)
plt.axvline(x=0, color='black', lw=1)
plt.xlabel('Re')
plt.ylabel('Im')

Expand Down