def Config(**options):
 names = ['title', 'xlabel', 'ylabel', 'xscale', 'yscale', 'xticks', 'yticks', 'axis', 'xlim', 'ylim']
 for name in names:
  if (name in options):
   getattr(pyplot, name)(options[name])
 loc_dict = {'upper right': 1, 'upper left': 2, 'lower left': 3, 'lower right': 4, 'right': 5, 'center left': 6, 'center right': 7, 'lower center': 8, 'upper center': 9, 'center': 10}
 global LEGEND
 LEGEND = options.get('legend', LEGEND)
 if LEGEND:
  global LOC
  LOC = options.get('loc', LOC)
  pyplot.legend(loc=LOC)

def Config ( ** options ) : names = [ 'title' , 'xlabel' , 'ylabel' , 'xscale' , 'yscale' , 'xticks' , 'yticks' , 'axis' , 'xlim' , 'ylim' ] for name in names : if ( name in options ) : getattr ( pyplot , name ) ( options [ name ] ) loc_dict = { 'upper right' : 1 , 'upper left' : 2 , 'lower left' : 3 , 'lower right' : 4 , 'right' : 5 , 'center left' : 6 , 'center right' : 7 , 'lower center' : 8 , 'upper center' : 9 , 'center' : 10 } global LEGEND LEGEND = options . get ( 'legend' , LEGEND ) if LEGEND : global LOC LOC = options . get ( 'loc' , LOC ) pyplot . legend ( loc = LOC )
configures the plot .