Thanks to visit codestin.com
Credit goes to github.com

Skip to content

plot(2D, 2D) will cycle through the input columns even with non-matching shapes #9784

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

Closed
anntzer opened this issue Nov 14, 2017 · 0 comments · Fixed by #9826
Closed

plot(2D, 2D) will cycle through the input columns even with non-matching shapes #9784

anntzer opened this issue Nov 14, 2017 · 0 comments · Fixed by #9826

Comments

@anntzer
Copy link
Contributor

anntzer commented Nov 14, 2017

Bug report

Bug summary

see title

Code for reproduction

plot([[0, 1, 2], [3, 4, 5]], [[0, 1], [2, 3]])

Actual outcome

figure_1

This plots column 0 of x vs column 0 of y; column 1 of x vs column 1 of y; and column 2 of x vs column 1 of y.

Expected outcome

Error out with non-matching shapes (the 1 -> broadcast should remain possible).

https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_base.py#L393 should probably be replaced by a broadcast.

Matplotlib version

  • Operating system:
  • Matplotlib version: master, probably around forever.
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant