Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
481 views
in Technique[技术] by (71.8m points)

pandas - hv.Slope.from_scatter, anyway to get the computed coefficient for this?

I'm plotting some scatter plots using holoviews and using hv.slope to compute the the slope for me. Code is as follows:

 Scatter_test = hv.Scatter(Scatter_Brand, vdims=['Brand'], kdims=['x', 'y'])
 Scatter_plot = Scatter_test  * hv.Slope.from_scatter(Scatter_test).opts(tools=['hover'])

However, does anyone know how I can get the computed coeffcient for the slope that holoviews computes and plots for me to appear on the slope that has been calculated? I've tried included the hover tool but no luck. Is it possible, or does anyone know of a work around?

Kind regards

question from:https://stackoverflow.com/questions/65940897/hv-slope-from-scatter-anyway-to-get-the-computed-coefficient-for-this

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

Just Browsing Browsing

[3] html - How to create even cell spacing within a

2.1m questions

2.1m answers

60 comments

57.0k users

...