Skip to content

Stackplot takes a transposed Y matrix #4952

Closed as not planned
Closed as not planned
@naught101

Description

@naught101

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.

ref: #819

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions