def tsplot(series, plotf, ax=None, **kwargs):
 if (ax is None):
  import matplotlib.pyplot as plt
  ax = plt.gca()
 (freq, series) = _maybe_resample(series, ax, kwargs)
 _decorate_axes(ax, freq, kwargs)
 ax._plot_data.append((series, plotf, kwargs))
 lines = plotf(ax, series.index._mpl_repr(), series.values, **kwargs)
 format_dateaxis(ax, ax.freq)
 return lines

def tsplot ( series , plotf , ax = None , ** kwargs ) : if ( ax is None ) : import matplotlib . pyplot as plt ax = plt . gca ( ) ( freq , series ) = _maybe_resample ( series , ax , kwargs ) _decorate_axes ( ax , freq , kwargs ) ax . _plot_data . append ( ( series , plotf , kwargs ) ) lines = plotf ( ax , series . index . _mpl_repr ( ) , series . values , ** kwargs ) format_dateaxis ( ax , ax . freq ) return lines
plots a series on the given matplotlib axes or the current axes parameters axes : axes series : series notes supports same kwargs as axes .