Is there any way to plot geom_smooth + geom_ribbon?

30 Views Asked by At

I am new to python and I am using the same code from this post: In ggplot2,specify values to use for geom_smooth() confidence interval (similar to geom_errorbar) to plot the graph in r

I tried to replicate the result in python:

g = so.Plot(x = risk_cont["day"], 
            y = risk_cont["mean"],
            ymin = risk_cont['conf.low'],
            ymax = risk_cont['conf.high'] ).add(so.Line())

However, the plot did not interpolate the interval between the given data. Is there anyway to do it in python with only seaborn + seaborn.objects?

0

There are 0 best solutions below