plt.figure() >>> plt.plot(x, y, 'x', xnew, ynew, xnew, np.sin(xnew), x, y, 'b') >>> plt.legend(['Linear', 'Cubic Spline', 'True']) >>> plt.axis([-0.05, 6.33, -1.05, 1.05]) >>> plt.title('Cubic-spline interpolation') >>> plt.show()