Smooth curved line between 3 points in plot
问题 I have 3 data points on the x axis and 3 on the y axis: x = [1,3,5] y=[0,5,0] I would like a curved line that starts at (1,0), goes to the highest point at (3,5) and then finishes at (5,0) I think I need to use interpolation, but unsure how. If I use spline from scipy like this: import bokeh.plotting as bk from scipy.interpolate import spline p = bk.figure() xvals=np.linspace(1, 5, 10) y_smooth = spline(x,y,xvals) p.line(xvals, y_smooth) bk.show(p) I get the highest point before (3,5) and it