-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Scatter plot color array length should raise Error #3079
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
I believe this behaviour to be unintentional. The The problem is that this function tests if it has been given a single value for the Now I have no idea how else this function is used but in this case the error is this. The function only checks that all of entries are bounded between
So is the first 3 entries in To check this, in the example given by @hugadams if As far as I can tell this just needs a small change to check the RGBA single value is of length 4 and this print a suitable error message. As I am new could anyone confirm this and I will be happy to try and implement a PR. |
Tagged as 1.4.x, but if this gets done before we tag 1.4.0 I see no reason it can't go in. @ga7g08 Please go ahead at try to fix this. I can't quite follow what you are proposing to change, the clearest way to see it is as a pull request. |
fix in #3092 has been merged. |
Not sure if this behavior is intentional, but if one makes a scatter plot and provides an array for c which is longer than the number of x, y values, instead of raising an error from the arrays being unevenly shaped, it filled in the colors in incorrectly. Here is an example with the correct colors (because 'colors' is the same length as x and y)
Here is one where colors is twice the size of x and y:
Seems like the intended behavior would be to have an error thrown, or am I mistaken.
The text was updated successfully, but these errors were encountered: