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
When using PyQtGraph's ImageView, mouse coordinates cease to update correctly when moving the cursor over an image with non-square dimensions (e.g., 4056x3040). Changing the image to a square dimension (e.g., 4056x4056) resolves the issue, suggesting a problem with handling non-square images.
The application should continuously update and print the mouse coordinates as the cursor moves over different parts of the image, regardless of the image's aspect ratio.
Real behavior
The mouse coordinates stop updating and printing when the cursor moves beyond a certain point on non-square images. For example, with an image of size 4056x3040, the coordinates cease to update beyond 3040 in either dimension. However, when the image is resized to be square (e.g., 4056x4056), the full range of coordinates is correctly updated and printed.
The issue is not observed with square images, suggesting that the problem lies in how ImageView handles images with non-square dimensions. This could potentially be a limitation or bug within PyQtGraph's handling of such images.
The text was updated successfully, but these errors were encountered:
I am seeing similar issues but I don't know that it's exactly because the images are not square. I do find that when I do an image of 3000 x 3000 I get the proper cursor coordinate behavior, however when I do 3100 X 3000 I don't see the proper behavior. I also noticed though that with square images that are small, I tried 300 x 300 I see a similar issue as with the 3100 x 3000 image although this image is square. I also tried 1000 x 1000 and had the same issue (not sure where the cutoff point is).
EDIT:
I actually found the issue I was having was related to resizing the window of the widget, the coordinates do not update to where the image is after resizing for smaller images. I have verified though that having non-square images (even before any window resizing) seems to have the problem you described.
Short description
When using PyQtGraph's ImageView, mouse coordinates cease to update correctly when moving the cursor over an image with non-square dimensions (e.g., 4056x3040). Changing the image to a square dimension (e.g., 4056x4056) resolves the issue, suggesting a problem with handling non-square images.
Code to reproduce
Expected behavior
The application should continuously update and print the mouse coordinates as the cursor moves over different parts of the image, regardless of the image's aspect ratio.
Real behavior
The mouse coordinates stop updating and printing when the cursor moves beyond a certain point on non-square images. For example, with an image of size 4056x3040, the coordinates cease to update beyond 3040 in either dimension. However, when the image is resized to be square (e.g., 4056x4056), the full range of coordinates is correctly updated and printed.
Tested environment(s)
AND
Additional context
The issue is not observed with square images, suggesting that the problem lies in how ImageView handles images with non-square dimensions. This could potentially be a limitation or bug within PyQtGraph's handling of such images.
The text was updated successfully, but these errors were encountered: