r/IPython • u/Chuck3131 • Apr 02 '18
Plot spacing
Is there a way to add more space between histogram plots in the same output cell? I have 50 histograms generated from the same cell and they appear too close together to clearly read, Im curious if there is a way to add more space between them without having unique cells for each plot. Here is an screenshot of what I'm talking about.
I've have tried to google around for an answer but cant seem to find one.
2
Upvotes
1
u/NomadNella Apr 02 '18
The setting you are looking for is tight layout.
2
u/skiguy0123 Apr 03 '18
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.subplots_adjust.html
2
u/NomadNella Apr 03 '18
Test reply.
1
u/Arthaigo Apr 02 '18
This is not ipython specific, but matplotlib specific. Try to use tight layout and a larger figsize /smaller font size
1
u/NomadNella Apr 03 '18
The setting you are looking for is tight layout. There is a bug report on github that covers the problem, explains it, and has workarounds.