Currently, I use the following piece of code to get function values by clicking into the plot, and this works fine for one curve:
data = pd.read_csv('filename')
plot = data.plot(x='column1', y='column2')
plt.show()
input_values = plt.ginput(n=0)
plt.close()
I would now like to simultaneously plot a second curve and obtain y-values from both plots with one click that determines the x-value. Thanks for your help!
A minimal working example could look like this:
Sample output: