Can i automatically set the margins for my subplots?
-
29-06-2021 - |
Question
The margins of my plots are unfortunatly too small for the Text i want to set there, 45* rotated:
How can i prevent the Labels for the datapoints from overlapping into the title? Would be best if it were computed, so i don"t have to manually adjust it. How can i remove all the whitespace around the graphs?
Solution
If you have an up to date matplotlib version, you can try using Tight Layout. Otherwise you will have to do it by hand with subplots_adjust
.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow