Skip to content

accept python lists in pylab.plot (not only numpy) #432

Description

@martinalex000

It would be nice if pylab.plot would accept python lists of length longer than two.

Currently, the call ipv.pylab.plot([0,1,3],[0,1,0],[3,5,5]) leads to the rather cryptic error message TypeError: only integer scalar arrays can be converted to a scalar index.

One solution would be to add a line values = np.array(values) to the function _grow_limit just before the call finites = np.isfinite(values)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions