def plot_patron_semanal_consumo(self, ax=None):
consumo_diario = self._consumo_horario.groupby(pd.TimeGrouper('<STR_LIT:D>')).sum()<EOL>media_semanal = consumo_diario.groupby(lambda x: x.weekday).mean().round(<NUM_LIT:1>)<EOL>días_semana = ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']<EOL>media_semanal.columns = días_semana<EOL>p_params = dict(figsize=(<NUM_LIT:16>, <NUM_LIT:9>)) if ax is None else dict(ax=ax)<EOL>ax = media_semanal.T.plot(kind='<STR_LIT:bar>', color='<STR_LIT>', legend=False, **p_params)<EOL>ax.set_xticklabels(días_semana, rotation=<NUM_LIT:0>)<EOL>ax.set_title('<STR_LIT>')<EOL>ax.set_ylabel('<STR_LIT>')<EOL>ax.grid('<STR_LIT>', axis='<STR_LIT:y>')<EOL>ax.hlines([consumo_diario.mean()], -<NUM_LIT:1>, <NUM_LIT:7>, lw=<NUM_LIT:3>, color='<STR_LIT>', linestyle='<STR_LIT::>')<EOL>return ax<EOL>
Gráfica de consumo medio por día de la semana (patrón semanal de consumo).
        :param ax: optional matplotlib axes
        :return: matplotlib axes