Skip to content

Commit 6bb8b56

Browse files
committed
change ioresp_plot to time_response_plot
1 parent 97f2fd1 commit 6bb8b56

4 files changed

Lines changed: 7 additions & 7 deletions

File tree

control/tests/kwargs_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def test_matplotlib_kwargs(function, nsysargs, moreargs, kwargs, mplcleanup):
186186
'gangof4_plot': test_matplotlib_kwargs,
187187
'input_output_response': test_unrecognized_kwargs,
188188
'interconnect': interconnect_test.test_interconnect_exceptions,
189-
'ioresp_plot': timeplot_test.test_errors,
189+
'time_response_plot': timeplot_test.test_errors,
190190
'linearize': test_unrecognized_kwargs,
191191
'lqe': test_unrecognized_kwargs,
192192
'lqr': test_unrecognized_kwargs,

control/tests/timeplot_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def test_errors():
317317
stepresp.plot(unknown=None)
318318

319319
with pytest.raises(TypeError, match="unrecognized keyword"):
320-
ct.ioresp_plot(stepresp, unknown=None)
320+
ct.time_response_plot(stepresp, unknown=None)
321321

322322
with pytest.raises(ValueError, match="unrecognized value"):
323323
stepresp.plot(plot_inputs='unknown')

control/timeplot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
from . import config
3030

31-
__all__ = ['ioresp_plot', 'combine_traces']
31+
__all__ = ['time_response_plot', 'combine_traces']
3232

3333
# Default font dictionary
3434
_timeplot_rcParams = mpl.rcParams.copy()
@@ -51,7 +51,7 @@
5151
}
5252

5353
# Plot the input/output response of a system
54-
def ioresp_plot(
54+
def time_response_plot(
5555
data, ax=None, plot_inputs=None, plot_outputs=True, transpose=False,
5656
combine_traces=False, combine_signals=False, legend_map=None,
5757
legend_loc=None, add_initial_zero=True, title=None, relabel=True,
@@ -719,7 +719,7 @@ def get_axes(line_array):
719719
"""Get a list of axes from an array of lines.
720720
721721
This function can be used to return the set of axes corresponding to
722-
the line array that is returned by `ioresp_plot`. This is useful for
722+
the line array that is returned by `time_response_plot`. This is useful for
723723
generating an axes array that can be passed to subsequent plotting
724724
calls.
725725

control/timeresp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
from . import config
8282
from .exception import pandas_check
8383
from .iosys import isctime, isdtime
84-
from .timeplot import ioresp_plot
84+
from .timeplot import time_response_plot
8585

8686

8787
__all__ = ['forced_response', 'step_response', 'step_info',
@@ -690,7 +690,7 @@ def to_pandas(self):
690690

691691
# Plot data
692692
def plot(self, *args, **kwargs):
693-
return ioresp_plot(self, *args, **kwargs)
693+
return time_response_plot(self, *args, **kwargs)
694694

695695

696696
# Process signal labels

0 commit comments

Comments
 (0)