Fix #5456: Keep margins <= .5 in tight_layout#6161
Fix #5456: Keep margins <= .5 in tight_layout#6161josecv wants to merge 4 commits intomatplotlib:masterfrom
Conversation
|
|
||
|
|
||
| def test_long_label(): | ||
| ''' |
|
Ok, thanks, does this look better? |
|
Hurm the tests seem to be failing with a latex error on windows, could it be the ylabel is too long for latex' tastes? |
|
It seems like the test failure is unrelated. Has anyone seen that before? (Cc: @JanSchulz) |
|
It seems latex is run in that test (if that's not ok, then the rest of my explanation is wrong :-)), but I'm not sure if appveyor has latex installed (I'm pretty sure it has not). Usually there are test decorators which test for latex and skip the test if no latex is available on the system: https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_backend_ps.py#L22-L25 and used then in https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/tests/test_backend_ps.py#L72-L78 |
|
Ah -- thanks, @JanSchulz. I don't LaTeX is supposed to be used in that test, but due to some sideeffect (probably of another test) it is. @josecv: Can you try adding the |
|
Cleanup is not enough, it has to skip if no Latex is installed. |
|
Ah, perfect, thanks! Hopefully this should do the trick |
|
Ok -- I think the confusion is that the new test in this PR is not responsible for the failure, but it somehow triggering it in another test -- It isn't clear to me why the next test here needs to check for TeX -- it shouldn't be using it and isn't part of the traceback displayed on AppVeyor. |
|
I've seens such behaviour when I missed a |
|
Huh Known Failure Did Not Fail: Is it possible that the cleanup decorator on its own is allowing the test to pass? |
|
Well, more specifically, it did fail, but for the wrong reasons. I am wondering if usetex=True is leaking from somewhere else? On Wed, Mar 16, 2016 at 1:08 PM, josecv [email protected] wrote:
|
|
Hmm, strange - hopefully then leaving the test with only |
|
Oh my, bizarrely it's the Travis build that's failed now, though it seems to be an unrelated failure in a single test (namely |
|
And now everything passes. Go figure. Just one thought on this. This approach solves the problem for the fully automatic case, but what about the case where the user specified some of the margins? |
|
That's a good point - the |
For #5456 added a check to keep margins < .5 to prevent an Exception