📜  Seaborn 箱线图沿 x 轴错误移动 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:04.786000             🧑  作者: Mango

代码示例1
# set dodge = False to shift correctly

import matplotlib.pyplot as plt
import seaborn as sns

tips = sns.load_dataset("tips")
ax = sns.boxplot(x="day", y="total_bill", hue="time",
                  dodge=False, data=tips, linewidth=2.5)

plt.show()