Update shared axes processing in plot_time_response by murrayrm · Pull Request #1040 · python-control/python-control
This PR updates the way that tickmarks are labeled on shared axes in time response plots, in response to a comment from @slivingston in #1034. Tickmark labels are now omitted on shared axes, consistent with frequency response plots.
To allow tickmark labels to be added, two new keyword arguments are included in time_response_plot: sharex and sharey. These are passthrough arguments to matplotlib.pyplot.subplots and allow axes sharing to be turned on and off in the same way as bode_plot => frequency and time response plots are now consistent.
Also added unit tests checking for consistency and updated the user documentation and relevant docstrings.
| Without tickmark labels | With tickmark labels |
|---|---|
Version 0.10.0: ![]() |
Previous to this PR (from #1034): ![]() |
After this PR (using default settings): ![]() |
After this PR (using sharex=False): ![]() |



