Skip to content
Discussion options

You must be logged in to vote

plt.plot expects the output in a different shape. You provide a list of two arrays with shape (10,), but it is casted by matplotlib into the wrong 2D array representing 10 curves with data from shape (2, ) each. Try to separate the time vector and response time series into different variables and call plt.plot with 2 parameters. Getting used to that will help you when you deal with systems with more than one output, where you have a time vector of length n and a response of (m, n): https://python-control.readthedocs.io/en/latest/conventions.html#time-series-data applies.

General note: It is not wrong to ask questions here, but this is the issue tracker for the source code. Edit: now moved…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bnavigator
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #473 on March 12, 2021 10:59.