Matplotlib: Ylabels Of Subplots Overlapping
I have three subplots sharing x-axis. I need hspace between subplots to be 0.0, but then y-labels of subplots overlap. ylabels of subplots overlap Is there any way to move extrem
Solution 1:
There is a dedicated ticker formater class exactly for this purpose. http://matplotlib.org/api/ticker_api.html#matplotlib.ticker.MaxNLocator
from matplotlib.ticker import MaxNLocator
ax2.yaxis.set_major_locator(MaxNLocator(prune='upper')) #remove highest label so it wont overlapp with stacked plot.
Edit: Actually this wont move them, just remove the overlapping ticks.
Post a Comment for "Matplotlib: Ylabels Of Subplots Overlapping"