from roboticstoolbox import trapezoidal
tg = trapezoidal(1, 2, 10)
tg.plot()