Black Lives Matter. Please consider donating to Black Girls Code today.

Two cursors on the plotly graph

Hi,
I’m searching for a solution to implement the functionality to add two cursors to the plot and measure the difference using python plotly. Like in an digital oscilloscope. Can anybody help me with how this could be achieved?. If not python plotly, is there any other way i can achieve this using a different library in python ?