I am trying to display the x y z coordinate of an image in matplotlib. the example code work perfectly well on the global python installation: As I move the cursor the x,y,z values get updated instantaneously. However, when I run the example code on a python virtual environment, I would click on the images several times for the coordinate to show in the first place, then when I click on different positions it would update for some. After few clicks, the coordinates will no longer update.
I don't know how to debug this.
pip freeze
both in the global and in the virtual environment and compare. Also see if the python version itself is the same. It could also be that matplotlib uses different backends, so also checkmatplotlib.get_backend()
. – swenzel