How to remove padding around the drawing?
Hi,
when I’m plotting something in the most straightforward way, like
from pylab import *
plot([1,2,3])
title(‘A title’)
xlabel(‘foo’)
ylabel(‘bar’)
savefig(‘test.png’)
MPL produces an output file that has quite some padding around the
drawing. Is there a way to remove that padding and only save the
“true bounding box”?
I know I can adjust that manually, but that would probably require
constant tweaking if e.g. the font size of the labels and title
changes.
Cheers,
Colin