You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @soupault for that link! Though it does not help to resolve it. It appears to be repeatable, right? Very strange since it is an old version but a new problem. Perhaps it has to do with the Qt version? Or how Travis handles Qt might have changed?
@jni Honestly, I don't think we should hold the examples to the same "As compatible with old versions as possible". That makes it VERY difficult for people to actually write and contribute examples.
Examples should be simple and readable by people with basic knowledge of python + image processing.
My solution has been not to run the examples in communion with MINIMUM_REQUIREMENTS which I think is fair. Otherwise, you will likely have ALOT of code written to support multiple versions which makes things less readable....
Also matplotlib 1.4.0 is the first version to claim to support python 3 (which is relevant for when scikit-image discontinues support for 2.7)
Given that the axes are different aspect ratios-on screen, I think they are trying (and failing) to match all of the constraints (aspect ratio 1, the same data limits, screen aspect ratios). I am not sure of the top of my head what the right fix is.
I am a bit surprised that this works interactively, but there is a lot of subtle code around managing both shared axes and aspect ratio so something is breaking out of the over-constrained system (this is what box-forced used to be doing for you).
The failure is with an ancient matplotlib version. I think you should drastically raise the minimum version of mpl you require. I don't see how anyone is going to benefit from the combination of up-to-date scikit-image and ancient matplotlib.
Activity
soupault commentedon Apr 28, 2018
Some comments on this matter - #2977 (comment) .
jni commentedon Apr 29, 2018
Thanks @soupault for that link! Though it does not help to resolve it. It appears to be repeatable, right? Very strange since it is an old version but a new problem. Perhaps it has to do with the Qt version? Or how Travis handles Qt might have changed?
soupault commentedon Apr 29, 2018
It doesn't, but, at least, we are all aligned now :).
I guess there is a room for investigation: try different backends, downgrade matplotlib, etc.
jni commentedon Apr 29, 2018
Yes. Does Travis have a docker container one can download to experiment with? Because doing this over Travis builds in pushes is painful.
matthew-brett commentedon Apr 29, 2018
Aha - yes - Travis does have such a container.
Have a look at the top of the Travis-CI log, in the "Worker information" section. You should see a line like:
Then run something like:
to start your own container with this image...
jni commentedon Apr 29, 2018
Thanks @matthew-brett!!!!
hmaarrfk commentedon May 16, 2018
@jni Honestly, I don't think we should hold the examples to the same "As compatible with old versions as possible". That makes it VERY difficult for people to actually write and contribute examples.
Examples should be simple and readable by people with basic knowledge of python + image processing.
My solution has been not to run the examples in communion with
MINIMUM_REQUIREMENTSwhich I think is fair. Otherwise, you will likely have ALOT of code written to support multiple versions which makes things less readable....Also matplotlib 1.4.0 is the first version to claim to support python 3 (which is relevant for when scikit-image discontinues support for 2.7)
tacaswell commentedon May 16, 2018
It looks like this is related to https://github.com/scikit-image/scikit-image/pull/2977/files#diff-2718b1161d3808601068cca87c2e8ff9L73 , that you are sharing axes across figures, that the tests are running with a non-interactive backend, and all of the plots have aspect = 1
That you are in different figures causes https://github.com/matplotlib/matplotlib/blob/cfb6ac64578c1d9e042a55c1c62894ba0d9bf331/lib/matplotlib/axes.py#L2551-L2554 to be hit, that your are non-interactive mean
draw_idleis the same asdrawwhich causes the recursion,Given that the axes are different aspect ratios-on screen, I think they are trying (and failing) to match all of the constraints (aspect ratio 1, the same data limits, screen aspect ratios). I am not sure of the top of my head what the right fix is.
I am a bit surprised that this works interactively, but there is a lot of subtle code around managing both shared axes and aspect ratio so something is breaking out of the over-constrained system (this is what box-forced used to be doing for you).
attn @efiring
efiring commentedon May 16, 2018
The failure is with an ancient matplotlib version. I think you should drastically raise the minimum version of mpl you require. I don't see how anyone is going to benefit from the combination of up-to-date scikit-image and ancient matplotlib.
hmaarrfk commentedon May 18, 2018
We bumbed numpy to 2.0.0 and pillow to 4.3. This issue is no longer relevant.
hmaarrfk commentedon May 18, 2018
Pillow needed to be bumped for jpeg.