def PrePlot(num=None, rows=None, cols=None):
 if num:
  _Brewer.InitializeIter(num)
 if ((rows is None) and (cols is None)):
  return
 if ((rows is not None) and (cols is None)):
  cols = 1
 if ((cols is not None) and (rows is None)):
  rows = 1
 size_map = {(1, 1): (8, 6), (1, 2): (14, 6), (1, 3): (14, 6), (2, 2): (10, 10), (2, 3): (16, 10), (3, 1): (8, 10)}
 if ((rows, cols) in size_map):
  fig = pyplot.gcf()
  fig.set_size_inches(*size_map[(rows, cols)])
 if ((rows > 1) or (cols > 1)):
  pyplot.subplot(rows, cols, 1)
  global SUBPLOT_ROWS, SUBPLOT_COLS
  SUBPLOT_ROWS = rows
  SUBPLOT_COLS = cols

def PrePlot ( num = None , rows = None , cols = None ) : if num : _Brewer . InitializeIter ( num ) if ( ( rows is None ) and ( cols is None ) ) : return if ( ( rows is not None ) and ( cols is None ) ) : cols = 1 if ( ( cols is not None ) and ( rows is None ) ) : rows = 1 size_map = { ( 1 , 1 ) : ( 8 , 6 ) , ( 1 , 2 ) : ( 14 , 6 ) , ( 1 , 3 ) : ( 14 , 6 ) , ( 2 , 2 ) : ( 10 , 10 ) , ( 2 , 3 ) : ( 16 , 10 ) , ( 3 , 1 ) : ( 8 , 10 ) } if ( ( rows , cols ) in size_map ) : fig = pyplot . gcf ( ) fig . set_size_inches ( * size_map [ ( rows , cols ) ] ) if ( ( rows > 1 ) or ( cols > 1 ) ) : pyplot . subplot ( rows , cols , 1 ) global SUBPLOT_ROWS , SUBPLOT_COLS SUBPLOT_ROWS = rows SUBPLOT_COLS = cols
takes hints about whats coming .