-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
VisibleDeprecationWarnings in test_given_colors_levels_and_extends #7334
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'm sure it is developer error, rather than anything meaningful. Looks like there was an oversight of "both" for filled in
|
@pelson can you open a PR fixing that? :D |
Realistically, unfortunately not at the moment 😞 . |
:( |
On further inspection, I'm not sure whether this is solely an error in the test. Removing colours from the input list still produces the same warning, so something in the contour itself is producing the wrong number of colours to be passed to the colorbar. |
Doesn't look like this is happening on current master any more: https://travis-ci.org/matplotlib/matplotlib/jobs/212484661 |
Pytest doesn't show warnings by default. |
Closed by #8737 |
On Travis, the
test_given_colors_levels_and_extends
test is generating twoVisibleDeprecationWarning
s:The first occurs on the axes that is not filled and
extend='min'
; the second with unfilled andextend='both'
. The passed colour list is 5 elements long and the levels list is 4 or 3. The warning can easily be fixed by trimming the colour list, but I'm not sure exactly where that should be.I guess I'm not entirely sure why one less level is passed for
extend='both'
when only unfilled. cc @pelson who wrote the testThe text was updated successfully, but these errors were encountered: