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
Scatter "c" kwarg hsa changed #5141
Comments
That would be a pretty major API breakage if intentional. How did we not have a test of that case? |
It looks like the logic has become a bit crossed. In https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L3832 we ravel the x and y, but then down at https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/axes/_axes.py#L3845 we check if Definitely a bug. |
@pelson, it's fortunate you found this--it's quite a nasty bug that I caused. @dopplershift, it's easy to not have a test; we handle all sorts of combinations of inputs, and only a tiny fraction of those combinations gets tested. I suspect most of our tests now are for corner cases where bugs have turned up, rather than being a systematic sweep through mpl's capabilities. |
I guess I'm more surprised that such a basic part of scatter's functionality wasn't tested via collateral damage from "corner case" tests. |
Super. Thanks @tacaswell & @efiring. |
In previous releases, it was possible, when using scatter, to colour makers based on your data directly with a scatter call:
In mpl 1.4:
In mpl 1.5:
Haven't had a chance to dig into exactly what has changed, but 18cc8bf looks like it could be related.
Ping @efiring just incase this was intentional.
The text was updated successfully, but these errors were encountered: