Pop up windows hovering points on plot

I have been working on this app and i took inspiration here on how to make the pop-up windows appear next to the point hovered. It is working very well on my work laptop (15 inches), however when i used my personal laptop (13inches), the pop-up windows appear in strange locations.
I imagine this has to do with the general display settings of the laptops as my smaller one uses a scaling of 150% (which is the recommended option).
However, I don't get how to adapt the script so that it would work with all screens.
My code is here.

This topic was automatically closed 54 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.