Skip to content

Commit 4745b5c

Browse files
committed
change import matplotlib as mlt to mpl for consistency
1 parent 7043610 commit 4745b5c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

control/rlocus.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# Packages used by this module
4949
from functools import partial
5050
import numpy as np
51-
import matplotlib as mlt
51+
import matplotlib as mpl
5252
import matplotlib.pyplot as plt
5353
from scipy import array, poly1d, row_stack, zeros_like, real, imag
5454
import scipy.signal # signal processing toolbox
@@ -62,7 +62,7 @@
6262
# Default values for module parameters
6363
_rlocus_defaults = {
6464
'rlocus.grid': True,
65-
'rlocus.plotstr': 'b' if int(mlt.__version__[0]) == 1 else 'C0',
65+
'rlocus.plotstr': 'b' if int(mpl.__version__[0]) == 1 else 'C0',
6666
'rlocus.print_gain': True,
6767
'rlocus.plot': True
6868
}
@@ -167,7 +167,7 @@ def root_locus(sys, kvect=None, xlim=None, ylim=None,
167167
"Clicked at: %10.4g%+10.4gj gain: %10.4g damp: %10.4g" %
168168
(start_mat[0][0].real, start_mat[0][0].imag,
169169
1, -1 * start_mat[0][0].real / abs(start_mat[0][0])),
170-
fontsize=12 if int(mlt.__version__[0]) == 1 else 10)
170+
fontsize=12 if int(mpl.__version__[0]) == 1 else 10)
171171
fig.canvas.mpl_connect(
172172
'button_release_event',
173173
partial(_RLClickDispatcher, sys=sys, fig=fig,
@@ -573,7 +573,7 @@ def _RLFeedbackClicksPoint(event, sys, fig, ax_rlocus, sisotool=False):
573573
fig.suptitle(
574574
"Clicked at: %10.4g%+10.4gj gain: %10.4g damp: %10.4g" %
575575
(s.real, s.imag, K.real, -1 * s.real / abs(s)),
576-
fontsize=12 if int(mlt.__version__[0]) == 1 else 10)
576+
fontsize=12 if int(mpl.__version__[0]) == 1 else 10)
577577

578578
# Remove the previous line
579579
_removeLine(label='gain_point', ax=ax_rlocus)

0 commit comments

Comments
 (0)