python - Matplotlib: how to make tight_layout independent of ticklabels -


here part of code, exports figures tight layout.

   ...   fig.set_size_inches(8,6.8)   fig.tight_layout(rect=(0, 0, 1, 0.9))  # fig.savefig(path,bbox_inches='tight',dpi=100)   fig.savefig(path,dpi=100)            plt.gcf().clear()   plt.close(fig)    ... 

unfortunately when looping on different frames , y axis labels changing, there frames when ticklabels getting close edge , entire plot shrinked shown in figures between red , green lines.

https://dl.dropboxusercontent.com/u/248943005/montage.png

i tried several cases, effect coming in 1 or way. seems make tight layout somehow independent of ticklabels. possible? if no, there alternatives?


Comments

Popular posts from this blog

C# random value from dictionary and tuple -

cgi - How do I interpret URLs without extension as files rather than missing directories in nginx? -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -