Q: how to have a couple of images with `bbox_inches='tight'`.
See original GitHub issueMore of a question than an issue. Sorry if this is inappropriate place for this - feel free to close if you have a better channel.
In https://matplotlib.org/tutorials/intermediate/constrainedlayout_guide.html#sphx-glr-tutorials-intermediate-constrainedlayout-guide-py I want to show the effect of both using bbox_inches='tight'
and not using it. Is it possible to make sphinx gallery do this?
I’ve tried saving the file to ../../doc/_static/constrained_layout/
but circleCI doesn’t like that, claiming there is no such directory (it works fine on a local build). The simplest solution is to just comment out the save, and put the generated file in static and commit the file that way, but then if constrained layout changes, someone needs to remember to regenerate the static file.
So, is there any way to get the tutorial to generate the file and switch the kwargs for savefig
?
Thanks for any pointers…
Issue Analytics
- State:
- Created 3 years ago
- Comments:12 (12 by maintainers)
Top GitHub Comments
Fine with me
@larsoner (and @jklymak) are you happy for this to be closed? I think the solutions were good.