Plotly Express hovermode with arbitrary column

我与影子孤独终老i 提交于 2019-12-11 17:13:52

问题


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?

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?


回答1:


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?



来源:https://stackoverflow.com/questions/57525950/plotly-express-hovermode-with-arbitrary-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!