![]() Line=dict(width=0.1,color='rgba(68, 122, 219, 0.Back in 2016, I had to prepare my PhD introductory talk and I started using package. To get the transparent confidence interval band along the regression line, extract the path describing the boundary of that band as follows: p_codes='.format(yy)) ![]() P=rg.get_children().get_paths()#The list of Path(s) bounding the shape of 95% confidence interval-transparentĭefine two traces of type scatter: one for your data points and the second for the regression line, defined by X and Y. ![]() Y=rg.get_lines().get_ydata()# y-coordinate If you want a plot similar to that generated by seaborn.regplot, simply define: rg=sns.regplot(your data)Īnd extract from rg the regression line data and the Path(s) bounding the confidence interval band, to plot them via Plotly: X=rg.get_lines().get_xdata()# x-coordinate of points along the regression line Is an example of plotting the linear fit.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |