def _add_axis_labels_title(plot, xlabel, ylabel, title):
 try:
  if hasattr(plot, 'set_title'):
   plot.set_title(title)
   plot.set_xlabel(xlabel)
   plot.set_ylabel(ylabel)
  else:
   plot.title(title)
   plot.xlabel(xlabel)
   plot.ylabel(ylabel)
 except:
  pass

def _add_axis_labels_title ( plot , xlabel , ylabel , title ) : try : if hasattr ( plot , 'set_title' ) : plot . set_title ( title ) plot . set_xlabel ( xlabel ) plot . set_ylabel ( ylabel ) else : plot . title ( title ) plot . xlabel ( xlabel ) plot . ylabel ( ylabel ) except : pass
helper function to add axes labels and a title to stats plots .