-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Handle matplotlib 2.2 pre-release deprecations #2977
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
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: https://travis-ci.org/scikit-image/scikit-image/jobs/349286622#L5741 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-forced
removal - Improve handling of shared axes with specified aspect ratio matplotlib/matplotlib#10033;spectral
colormap 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
.