matplotlib - Seaborn:如何在累积的 KDE 中绘制与特定 y 值匹配的垂直线?
问题描述
我正在使用 Seaborn 绘制累积分布,它是使用以下代码的 KDE:
sns.distplot(values, bins=20,
hist_kws= {'cumulative': True},
kde_kws= {'cumulative': True} )
这给了我以下图表:
我想绘制一条垂直线和相应的 x 索引,其中 y 为 0.8。就像是:
如何获得特定 y 的 x 值?
解决方案
推荐阅读
- node.js - 如何在 uri 中使用 https 模块?
- c# - 如何在 Windows 中计算应用程序级别的数据使用情况
- c++ - 由 OpenCL 中的内核管理的异步数据传输?
- r - 如何保存中间对象?
- bootstrap-4 - 为什么检查显示 scss 文件而不是 bootstrap.css?
- c# - 在程序 c# 开始时加载 JSON 数据
- mongodb - 为什么 Mongoose 不能在 MongoDB Atlas 中创建索引?
- node.js - 当我使用命令 npm start 运行 Angular 应用程序时会发生什么
- java - 时区公式
- powerbi - 如何从表格中获取最小和最大日期?