用Python分隔箱线图

时间:2020-11-03 23:09:43

标签: python matplotlib seaborn boxplot

我有四个不同的箱线图,它们重叠。如何在Python中将它们分开?

我的代码在这里:

import matplotlib.pyplot as plt
import seaborn as sns

plt.boxplot(x=group_a,
notch = True)

plt.boxplot(x=group_b,
notch = True)

plt.boxplot(x=group_c,
notch = True)

plt.boxplot(x=group_d,
notch = True)

plt.title('sales values')
plt.ylabel('number of sales')

0 个答案:

没有答案