imexam
imexam copied to clipboard
coordinates from key commands wrong when used with full-screen window
I noticed some very odd behavior (on a Mac, which may or may not be relevant). If I am running a jupyter notebook from a full-screen window (not just filling the screen but in the "full-screen" mode Macs now support), and have ds9 on a regular desktop, all the imexam commands don't work. Specifically, they report x/y positions different from where the cursor actually is. I suspect this is some problem where the screen-offset coordinates aren't quite right because it's using the full-screen mappings instead of the regular desktop, but that's just a guess.
Steps to reproduce (only on a Mac):
- Open up ds9 on a regular desktop
- Start a jupyter notebook and run it in full-screen mode (the "green arrow" icon in the upper-left)
- do
imexam.connect('ds9').imexam()
- use any key command (like "x", or "r") that cares where the cursor is and note the coordinate. It will not match where the cursor actually is
- If you un-full-screen the notebook, suddenly all works as expected
Wierd - a couple questions to help diagnose:
- are you using ds9 Xquartz or native? How do you keep your ds9 from disappearing behind the full-screen window?
- do you have multiple monitors?
- are you using something other than the native aspect ratio? Do any of the resolutions work?
- is your display scaled?
- what browser are you using?
@eteq have you tried this lately?