The svn version has a new keyword "bbox_extra_artists", which could be used.
But, there is no easy way for the released version of matplotlib.
Below is a workaround you may use, but it's a bit complicated.
Regards,
-JJ
fig = figure(1)
ax = fig.add_subplot(111)
l1, = ax.plot([1,2,3])
leg = figl
Hi all,
how can I reduce the white area around the plots (several subplots) with
legends outside to the right of the axes when saving it to a png-file?
pyplot.savefig('test2.png',bbox_inches='tight') shrinks the paper to axes size
but cuts the legend.
Thanks in advance
Mario Mech
--
Dr. Mari