def _decorate_axes(ax, freq, kwargs):
 if (not hasattr(ax, '_plot_data')):
  ax._plot_data = []
 ax.freq = freq
 xaxis = ax.get_xaxis()
 xaxis.freq = freq
 if (not hasattr(ax, 'legendlabels')):
  ax.legendlabels = [kwargs.get('label', None)]
 else:
  ax.legendlabels.append(kwargs.get('label', None))
 ax.view_interval = None
 ax.date_axis_info = None

def _decorate_axes ( ax , freq , kwargs ) : if ( not hasattr ( ax , '_plot_data' ) ) : ax . _plot_data = [ ] ax . freq = freq xaxis = ax . get_xaxis ( ) xaxis . freq = freq if ( not hasattr ( ax , 'legendlabels' ) ) : ax . legendlabels = [ kwargs . get ( 'label' , None ) ] else : ax . legendlabels . append ( kwargs . get ( 'label' , None ) ) ax . view_interval = None ax . date_axis_info = None
initialize axes for time-series plotting .