сгруппированы внизу - изображение Я пытаюсь изобразить, как увеличиваются случаи covid в виде кумулятивной суммы за определенный период для разных стран. Так что мне в основном нужны даты по оси x и счет по оси y. как я могу разбить ось на меньшие ячейки, чтобы она выглядела чище?
date_trend = covid_data[covid_data['type']=='confirmed'].pivot_table(values='cases',index='Country.Region',columns='date',aggfunc=np.sum)
final_trend = date_trend.cumsum(axis=1)
trend_t10 = final_trend.loc[top10.index]
plt.figure(figsize=[20,20])
for index, row in trend_t10.iterrows():
plt.plot(trend_t10.loc[index].index,trend_t10.loc[index].values,label=index,linewidth=2,markersize=12)
plt.legend(loc='best')
params = {'legend.fontsize': 20,
'legend.handlelength': 2}
plot.rcParams.update(params)
plt.xlabel('Dates')
plt.ylabel('Number of Confirmed Cases')
plt.title('China in comapriso to other majorly affected countries')
plt.show()