У меня есть данные теста, такие как:
d = {'Year':[2015,2016,2017,2018,2019,2020],
'Average Temperature, C':[15, 16, 14, 13, 17, 17],
'Precipitation':[1,2,3,4,5,6]}
, поэтому мой df df = pd.DataFrame(data=d)
, тогда я хочу визуализировать это в Temperature
значении, поэтому
fig, ax = plt.subplots()
fig.set_size_inches(11.7,8.27)
sns.barplot(x='Year', y='Average Temperature, C', data=df, ax=ax)
sns.despine()

Я могу сделать это также с Precipitation
, что означает
fig, ax = plt.subplots()
fig.set_size_inches(11.7,8.27)
sns.barplot(x='Year', y='Precipitation', data=df, ax=ax)
sns.despine()

Я хочу объединить эту графику в первом изображении и дать текст всех графиков из Precipitation
, так что это должно выглядеть так: 