Obs: Antes de olhar a instrução do tutor
with plt.style.context('Solarize_Light2'):
#Definindo a grade e o tamanho | espaçamento de altura e largura | título principal
fig, axs = plt.subplots(2,2, figsize = (12,6))
fig.subplots_adjust(hspace=0.5, wspace=0.3)
fig.suptitle('ANÁLISE DE VENDAS', fontsize=18)
#alterando as cores
cores = ['tab:blue', 'tab:orange', 'tab:green', 'tab:red']
ymin = 0
ymax = 500
#otimizando o código
for i, ax in enumerate(axs.flat):
cor = cores[i % len(cores)] # ChatGPT ajudou
ax.plot(df.loc[lojas[i]], color=cor, marker=None, lw=3) # ChatGPT ajudou na lojas[i]
ax.set_title(f' Loja {lojas[i]}', fontsize=14, loc='left', color=cor, fontweight='bold')
ax.set_xlabel('Mês', fontsize=10)
ax.set_ylabel('Vendas', fontsize=10)
ax.set_ylim(ymin, ymax)
ax.yaxis.set_tick_params(labelsize=10)
ax.xaxis.set_tick_params(labelsize=10)
plt.show()