|
9 | 9 | # computation of root locus diagrams is in rlocus.py.) |
10 | 10 | # |
11 | 11 |
|
12 | | -import numpy as np |
13 | | -from numpy import real, imag, linspace, exp, cos, sin, sqrt |
14 | | -import matplotlib.pyplot as plt |
15 | | -from math import pi |
16 | 12 | import itertools |
17 | 13 | import warnings |
| 14 | +from math import pi |
| 15 | + |
| 16 | +import matplotlib.pyplot as plt |
| 17 | +import numpy as np |
| 18 | +from numpy import cos, exp, imag, linspace, real, sin, sqrt |
18 | 19 |
|
| 20 | +from . import config |
| 21 | +from .freqplot import _freqplot_defaults, _get_line_labels |
| 22 | +from .grid import nogrid, sgrid, zgrid |
| 23 | +from .iosys import isctime, isdtime |
19 | 24 | from .lti import LTI |
20 | | -from .iosys import isdtime, isctime |
21 | | -from .grid import sgrid, zgrid, nogrid |
22 | 25 | from .statesp import StateSpace |
23 | 26 | from .xferfcn import TransferFunction |
24 | | -from .freqplot import _freqplot_defaults, _get_line_labels |
25 | | -from . import config |
26 | 27 |
|
27 | 28 | __all__ = ['pole_zero_map', 'pole_zero_plot', 'pzmap', 'PoleZeroData'] |
28 | 29 |
|
@@ -424,8 +425,8 @@ def pole_zero_plot( |
424 | 425 | if len(labels) > 1 and legend_loc is not False: |
425 | 426 | if response.loci is None: |
426 | 427 | # Use "x o" for the system label, via matplotlib tuple handler |
427 | | - from matplotlib.lines import Line2D |
428 | 428 | from matplotlib.legend_handler import HandlerTuple |
| 429 | + from matplotlib.lines import Line2D |
429 | 430 |
|
430 | 431 | line_tuples = [] |
431 | 432 | for pole_line in lines: |
@@ -532,7 +533,7 @@ def _find_root_locus_gain(event, sys, ax): |
532 | 533 |
|
533 | 534 | # Mark points corresponding to a given gain on root locus plot |
534 | 535 | def _mark_root_locus_gain(ax, sys, K): |
535 | | - from .rlocus import _systopoly1d, _RLFindRoots |
| 536 | + from .rlocus import _RLFindRoots, _systopoly1d |
536 | 537 |
|
537 | 538 | # Remove any previous gain points |
538 | 539 | for line in reversed(ax.lines): |
|
0 commit comments