Home > OS >  Is there a way to make a "oscilloscope styled" double cursor delta while plotting in matpl
Is there a way to make a "oscilloscope styled" double cursor delta while plotting in matpl

Time:12-23

I was looking for more information about whether or not it was possible to make a "oscilloscope styled" double cursor delta (like the example below) while plotting with matplotlib?

Oscilloscope example

CodePudding user response:

Please find below the demo of the code that allowed me to reach my goal and its output graph (warning: x and y values are equal to the to the ones where you clicked).

To select the first cursor, simply left click on the graph, to select the second one, simply do the same, but this time, by pressing shift simultaneously (or change the toggle key to the one of your liking (demo gif

  • Related