|
From: Stan W. <sta...@nr...> - 2008-11-13 22:57:45
|
> Another approach is to use the subplotpars kwarg to adjust
> the positioning parameters when initializing the figure.
Here's how I like to implement that approach when I want strict dimensions:
figW = 6.5 # in inches
figH = 7
fig = figure(figsize=(figW, figH),
subplotpars=mpl.figure.SubplotParams(
left= (48 / 72.0) / figW, # 48-point left margin
bottom= (36 / 72.0) / figH, # etc.
right= 1 - (18 / 72.0) / figW,
top= 1 - (12 / 72.0) / figH))
|