def METHOD_NAME( self ):
    pixels = tuple( self.GetClientSize() )
    if not tuple(self.canvas.GetSize()) == pixels:
        self.SetSize( pixels )
        self.canvas.SetSize( pixels )
        self.figure.set_size_inches( float( pixels[0] )/self.figure.get_dpi(),
                                     float( pixels[1] )/self.figure.get_dpi() )
        try:
            if self.IsShownOnScreen():
                self.draw()
        except:
            pass