For example, for a fixed axis, adding some interactivity so that the user can set x between 0 to 1000 for the below piece-wise function:
def fun1(x):
if(x<=100):
return x
elif(100<x<=200):
return x
elif(200<x<=500):
return 50+((x-250)*0.5)
elif(x>500):
return 350+(x-500)
Is this possible in Plotly?