I would like to use sns.seaborn
to display the np.sum
and the np.mean
on 2 different axes (with ax2 = ax1.twinx()
I assume). The probem I have is that the graphs are overlapped and not readable.
Am I approaching the problem correctly? What can I do to get those bars next to each other?
import seaborn as sns
tips = sns.load_dataset("tips")
f, ax1 = plt.subplots()
ax2 = ax1.twinx()
sns.barplot(x="day", y="total_bill", data=tips, estimator=np.mean, ax=ax1)
sns.barplot(x="day", y="total_bill", data=tips, estimator=np.sum, ax=ax2, ci=None)
Thanks for your help
Larry