| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
|
This needs a test specifically of tight layout on outward ticks, but I thought I'd put this up for comment early anyway... |
Sorry, something went wrong.
Oops. You're right. |
Sorry, something went wrong.
|
Well, I don't see anything particularly wrong with it, but are there no test images that use outward ticks? Or just none with a tight bounding box? |
Sorry, something went wrong.
|
A test has been added |
Sorry, something went wrong.
There was a problem hiding this comment.
Is this going to work for polar axes? I would also double-check that this doesn't utterly bork for axes3d (not that I'd expect it to work great there, just to not crash or something).
Sorry, something went wrong.
There was a problem hiding this comment.
polar axes don't have ticks -- but it does appear that this needs to be updated so it's aware of when the ticks are present or not.
It doesn't seem to crash for axes3d, though as you say, it doesn't really do the right thin other than add a bit more space.
Sorry, something went wrong.
|
image tests that have just been added are failing |
Sorry, something went wrong.
|
I don't think the test is really all that useful. tight_layout is for ensuring that subplots don't run into each other. So, a good test would be to have a grid of subplots, perhaps each with different tick directions? |
Sorry, something went wrong.
|
@WeatherGod: I've updated the test as you helpfully suggested. |
Sorry, something went wrong.
There was a problem hiding this comment.
bit of a bike shed, better to do this with a dictionary?
Sorry, something went wrong.
There was a problem hiding this comment.
Sure.
Sorry, something went wrong.
|
I've addressed @tacaswell's comments, and added minor ticks to the test to catch the pathological case he mentions. |
Sorry, something went wrong.
|
Also updated to handle the case where there are no ticks, as suggested by @WeatherGod |
Sorry, something went wrong.
Include outward ticks in bounding box
Include outward ticks in bounding box
Include outward ticks in bounding box
|
Backport to v2.x was actually via 8ac5b4b. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Replaces #5502.