Drawing curve like Tradingview Curve Tool with Python

So sorry for the mistakes I made while speaking English.

I want to drawing a curve in pandas dataframe but curve should be like Tradingview “curve tool” or “double curve tool” with Python. I will make an algortihmic trade program but i cant because this reason.


from matplotlib import pyplot as plt
import numpy as np, pandas as pd

curve_df = pd.DataFrame.from_dict({"Date":[i for i in range(-10, 10)], "Curve":np.nan})

points = [[1,3], [0, 2], [1, 3]] #random coordinates but will be not random coordinates

#here is codes for making curve with points

plt.plot(df["Curve"], label="Curve")

Thanks in advance…