具有任意列的Plotly Express悬停模式 [英] Plotly Express hovermode with arbitrary column

查看:189
本文介绍了具有任意列的Plotly Express悬停模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到layout中的hovermode属性具有xy的选项,但是可以使用任意数据框列吗?代替?

I see that the hovermode attribute in layout has options for x or y, but is it possible to use an arbitrary dataframe column? instead?

例如,我正在绘制精确调用曲线. x轴是召回率,y轴是精度.自变量是检测阈值(范围为np.linspace(0,1.0,101)),在我的数据框中的列为threshold.当我将鼠标悬停在精确调用点上时,我感兴趣的是其他曲线上具有相同检测阈值的点.所以我可以将鼠标悬停在此列上吗?

For example, I'm plotting precision-recall curves. The x-axis is recall, and the y-axis is precision. The independent variable is a detection threshold value (with range of np.linspace(0,1.0,101)) with a column in my dataframe called threshold. When I hover over a precision-recall point, what I'm interested in is points on other curves with the same detection threshold value. So can I instead hover on this column?

推荐答案

不,目前没有任何功能.您可以考虑使用第二组等阈值"曲线来看看这种情况吗?

No, there’s no feature for that at the moment. You could consider a second set of "iso-threshold" curves to see this kind of thing perhaps?

这篇关于具有任意列的Plotly Express悬停模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆