-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Wrong Error Message #11919
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
Comments
@davidleejy Thank you for the extensive ticket :). FTR, the difference between Python 2 and 3 is “simply” related to #11383. |
For the better or the worst (mostly the worst, IMO, but see discussion in #12735), the error message is also correct, because c could be colormapped data (and x/y could indeed have been badly sized): something like
works. Note that as of master, the exception is
which seems not too bad, so I'm suggesting to close this. |
Closing as suggested by @anntzer |
Bug report
Affects: commit 7b5ff33 (master, 23 Aug 2018)
An attempt to plot a single point at coords (2,3) with RGB color (120,130,140) throws an error message remarking about argument shapes mismatching. Message should be about RGB values outside range 0 to 1.
Code for reproduction
This is ok:
Actual outcome
See above.
Expected outcome
Suggestion: error message could be about RGB values outside of 0 to 1 range.
Trace
python 2 gives slightly different trace:
Matplotlib version
print(matplotlib.get_backend())
): <object object at 0x7f8885d87190>How I installed matplotlib:
The text was updated successfully, but these errors were encountered: