Time response plot improvements by murrayrm · Pull Request #1018 · python-control/python-control
This PR makes improvements to the code for plotting time responses, building on some of the improvements made for frequency response plots (#1011):
sys_mimo1 = ct.tf2ss(
[[[1], [0.1]], [[0.2], [1]]],
[[[1, 0.6, 1], [1, 1, 1]], [[1, 0.4, 1], [1, 2, 1]]], name="sys_mimo1")
sys_mimo2 = ct.tf2ss(
[[[1], [0.1]], [[0.2], [1]]],
[[[1, 0.2, 1], [1, 24, 22, 5]], [[1, 4, 16, 21], [1, 0.1]]],
name="sys_mimo2")
ct.step_response(sys_mimo1).plot()
ct.step_response(sys_mimo2).plot()
Note the fact that both responses are in the same color.
ct.step_response([sys_mimo1, sys_mimo2])