r/learnpython • u/_between3-20 • 9d ago
Remove padding of polar subplots
I have a figure that is composed of many subplots. Some of them are just simple plots with a normal projection, but some are made with a polar projection. I have it set up such that there are no labels on the outside of the polar plots, but when I look at the final figure, I still get tiny plots compared to the other ones because there is a lot of padding kept on the margins of the polar subplots. I have already tried passing the pad=0 option while plotting, as well as using plt.subplots_adjust() or plt.tight_layout(), but I still get comparatively smaller radar plots. I could fix this manually using an external editor, but I would like to be able to solve it using Python on its own.
View all comments
1
u/TheRNGuy 9d ago
You need to look in browser web dev tool.
It could come from completely different thing (look in layout and in css tabs)
You can also change things in real time there to find problem faster.