creat a subplot [2,2]

18 views Asked by At

I'm trying to create a subplot of shape [2,2] with a pandas dataframe already created, but can´t find a solution.

Let's say I want the first plot inside one of the four plots. I feel I'm almost there, but still something is missing.

c = hosts_df
c_country = c.groupby(['country', c['enviroment']]).size()
c_country.unstack()

fig, axs = plt.subplots(2, 2)
axs[0, 0].barh(['c_country.unstack()'])
axs[0, 0].set_title('Gráfico 3');`
0

There are 0 answers