Here is the code:
plt.figure(figsize=(15,6)) # does not affect the following plot
fig, ax = plt.subplots()
ax.set_xticklabels(q9.columns.values[::-1], fontproperties=label_font, fontsize=14)
sns.barplot(q9.columns.values, q9.iloc[[1]].get_values()[0], palette="GnBu_d", ax=ax)
I had to set the font in this case, so I need the ax object. The final plot is really small, definitely not (15,6). I think by setting ax=ax changed the size of the plot to its default size.
Any idea on how to change the size of the figure in this case?
fig, ax = plt.subplots(figsize=(15,6))