You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi @scott-huberty,
I looked into this and agree that using the screen resolution (when available) makes the calibration plot much easier to interpret relative to the display dimensions.
It seems the current implementation defaults to tight axis limits around the data points if explicit limits aren't set. I tested a fix locally that checks for calibration [screen_resolution] and uses it to set xlim and ylim accordingly.
Verification Since the sample data in eyelink.data_path() lacks resolution metadata (it returns None), I manually injected a (1920, 1080) resolution to test the logic.
Before: (Current Implementation)
After ( With Fix ):
The y-axis is set to (height, 0) to match standard screen coordinate systems. If this looks good to you, I can open a PR for this!
Thanks @flying-spagetti ! Based on my understanding of the issue, I agree with you and @drammock that it would be better to properly set the axis limits given that we have the screen resolution info. Your fix seems reasonable to me, feel free to open a PR and we can iterate over there.
Activity
flying-spagetti commentedon Dec 22, 2025
Hi @scott-huberty,
I looked into this and agree that using the screen resolution (when available) makes the calibration plot much easier to interpret relative to the display dimensions.
It seems the current implementation defaults to tight axis limits around the data points if explicit limits aren't set. I tested a fix locally that checks for calibration [
screen_resolution] and uses it to setxlimandylimaccordingly.Verification Since the sample data in
eyelink.data_path()lacks resolution metadata (it returns None), I manually injected a (1920, 1080) resolution to test the logic.Before: (Current Implementation)
After ( With Fix ):
The y-axis is set to
(height, 0)to match standard screen coordinate systems. If this looks good to you, I can open a PR for this!scott-huberty commentedon Dec 22, 2025
Thanks @flying-spagetti ! Based on my understanding of the issue, I agree with you and @drammock that it would be better to properly set the axis limits given that we have the screen resolution info. Your fix seems reasonable to me, feel free to open a PR and we can iterate over there.