def create_mpl_fig(fig=None, figsize=None):
 if (fig is None):
  plt = _import_mpl()
  fig = plt.figure(figsize=figsize)
 return fig

def create_mpl_fig ( fig = None , figsize = None ) : if ( fig is None ) : plt = _import_mpl ( ) fig = plt . figure ( figsize = figsize ) return fig
helper function for when multiple plot axes are needed .