def _format_date(self, tdoy): ''' Convert to MatPlotLib date ''' mpl_date = mdates.date2num(tdoy.dtobject) return mpl_date