'change subplot geometry, e.g., from 1,1,1 to 2,2,3'

def change_geometry(self, numrows, numcols, num):

    self._subplotspec = GridSpec(numrows, numcols)[(num - 1)]
    self.update_params()
    self.set_position(self.figbox)
