You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pylab.plot() can take y as a matrix. When it does, it treats columns as data series. This makes it work nicely with, for example, pandas dataframes.
pylab.stackplot() takes y as a transposed matrix, where rows are data sereies, to data frames must be transposed. It would be better for consistency if it followed the plot format.
Also, plot() can take a y with no x, and x is generated as range(y.shape[0]) - it'd be great if stackplot allowed this as well.
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
I agree this is inconsistent. However, 11 years later, this seems unlikely to change. Whoever uses stackplot is probably used to its quirks and it seems impossible to change the sense of the matrix order at this late date.
Activity
github-actions commentedon Mar 16, 2023
This issue has been marked "inactive" because it has been 365 days since the last comment. If this issue is still present in recent Matplotlib releases, or the feature request is still wanted, please leave a comment and this label will be removed. If there are no updates in another 30 days, this issue will be automatically closed, but you are free to re-open or create a new issue if needed. We value issue reports, and this procedure is meant to help us resurface and prioritize issues that have not been addressed yet, not make them disappear. Thanks for your help!
jklymak commentedon Mar 16, 2023
I agree this is inconsistent. However, 11 years later, this seems unlikely to change. Whoever uses stackplot is probably used to its quirks and it seems impossible to change the sense of the matrix order at this late date.