Repository navigation
Handle matplotlib 2.2 pre-release deprecations - #2977
Conversation
|
Hello @soupault! Thanks for submitting the PR.
|
|
@efiring @tacaswell Hi! Do you have any ideas on what kind of recursion happened in this build - https://travis-ci.org/soupault/scikit-image/jobs/349250897 ? |
|
Given that the failure occurred on only one of the test configurations I suspect it is a Travis fluke. |
|
@efiring That seems unlikely, given that the traceback is matplotlib specific: This is the file in question: https://github.com/scikit-image/scikit-image/blob/master/doc/examples/color_exposure/plot_ihc_color_separation.py And the configuration for this builder has the Qt backend enabled. There seems to be a recursion when draw is called. |
|
Travis cache cleanup doesn't seem to help. |
|
matplotlib/matplotlib#10690 is addressing the only known present recursion problem. |
|
The plotting in that function looks pretty generic. I take it the problem is repeatable, but only with that one build configuration, correct? What is the implication of enabling the Qt backend in the test? I don't understand what that is doing, since presumably there is no window available. If you run the test code normally, on a computer with a display and with backend_qt5agg, do you still have a problem? |
|
I'm doing some optimistic merging here, since matplotlib 2.2 is out. |
I've run the example on Python 2.7 with matplotlib 2.2 locally, and haven't spotted any issues. Not sure if my environment 100% matches the one on Travis though. |
* Remove deprecated box-forced matplotlib parameter * Use nipy_spectral colormap instead of deprecated spectral (mpl gh7416) * Refactored plot_adapt_rgb
Description
I checked several gallery examples modified by this PR in my Python environment (matplotlib 2.1.0) and haven't found any regressions.
References
Closes #2965.
MPL PRs:
box-forcedremoval - Improve handling of shared axes with specified aspect ratio matplotlib/matplotlib#10033;spectralcolormap alias deprecation - MAINT deprecated 'spectral' in favor of 'nipy_spectral' matplotlib/matplotlib#7416.For reviewers
(Don't remove the checklist below.)
later.
__init__.py.doc/release/release_dev.rst.