Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
martinalex000 opened this issue Mar 20, 2023 · 0 comments
Open

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

martinalex000 opened this issue Mar 20, 2023 · 0 comments

Comments

@martinalex000
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant