It is best to create a figure of a right size in the first place.
If this cannot be done, try something like below.
dpi = 80
fig=figure(1, dpi=dpi)
ax = axes((0,0,1,1))
ax.set_aspect(1)
from matplotlib.transforms import TransformedBbox, Affine2D
w, h = fig.get_size_inches()
bbox = TransformedBbo
The question has been answered I think in the thread
"Graph gains a blank space at the right hand side"
just some seconds ago.
Am I wrong?
Friedrich
--
Download IntelĀ® Parallel Studio Eval
Try the new software tools for