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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…