Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Labels
Milestone
Description
On Travis, thetest_given_colors_levels_and_extends
test is generating twoVisibleDeprecationWarning
s:
.../matplotlib/colorbar.py:539: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 5 but corresponding boolean dimension is 4 colors = np.asarray(colors)[igood].../matplotlib/colorbar.py:539: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 5 but corresponding boolean dimension is 3 colors = np.asarray(colors)[igood]
The first occurs on the axes that is not filled andextend='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 forextend='both'
when only unfilled. cc@pelson who wrote the test