def set_size_inches(self, *args, **kwargs):
forward = kwargs.get('<STR_LIT>', False)<EOL>if len(args)==<NUM_LIT:1>:<EOL><INDENT>w,h = args[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>w,h = args<EOL><DEDENT>dpival = self.dpi<EOL>self.bbox_inches.p1 = w, h<EOL>if forward:<EOL><INDENT>dpival = self.dpi<EOL>canvasw = w*dpival<EOL>canvash = h*dpival<EOL>manager = getattr(self.canvas, '<STR_LIT>', None)<EOL>if manager is not None:<EOL><INDENT>manager.resize(int(canvasw), int(canvash))<EOL><DEDENT><DEDENT>
set_size_inches(w,h, forward=False)

Set the figure size in inches

Usage::

     fig.set_size_inches(w,h)  # OR
     fig.set_size_inches((w,h) )

optional kwarg *forward=True* will cause the canvas size to be
automatically updated; eg you can resize the figure window
from the shell

WARNING: forward=True is broken on all backends except GTK*
and WX*

ACCEPTS: a w,h tuple with w,h in inches