Returned coordinates from two plots on same axes are different

I’m trying to grab the plot coordinates from a mouse click using the plotly_click event. Printing the event objects shows that the numbers for points[1] are correct with a value of (x, y) = (2, 12.1111) while the numbers for points[0] are incorrect (x, y) = (2.017, -0.699).

these plots are on the same axes so I don’t understand why they would be different.

coordinates

This seems similar to this:

but no one replied. Is p2c the only reliable solution?

1 Like