python - 在 Python 中分离箱线图
问题描述
我有四个不同的箱线图,它们重叠。如何在 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')
解决方案
推荐阅读
- javascript - 如何在 Select2 上使用动态选择?
- ibm-cloud - 无法通过 IBM 云 cli 将应用程序推送到 IBM 云
- mysql - 删除 MySQL/PhpMyAdmin 默认用户,现在有错误
- c++ - 类继承默认构造函数不能被引用
- android - 使用改造注册并处理单选按钮和微调器
- sql-server - 在 SQL Server 中连接两个表时获取更多记录
- python - 检查瞬态模型实例的“如果已修改”
- python - 如何找到 Sprite 和屏幕角之间的距离(以像素为单位)?
- ruby-on-rails - 面临在 Ubuntu 18 上使用 rails 安装 Heroku CLI 的问题
- firebase - 设置 Firebase 实时数据库规则