nion-software / nionswift

Nion Swift is open source scientific image processing software integrating hardware control, data acquisition, visualization, processing, and analysis using Python. Nion Swift is easily extended using Python. It runs on Windows, Linux, and macOS.
http://nion.com/swift
GNU General Public License v3.0
44 stars 33 forks source link

Graphics on 4D data show incorrect position in centered mode #1049

Open Brow71189 opened 4 months ago

Brow71189 commented 4 months ago

If you put a graphic (ellipse in my example) in the center of a data item containing 4D data, and switch the displayed coordinates of the graphic to either "Pixels (centered)" or "Fractional (centered)", the position of the graphic in the inspector will not be (0, 0), but almost the same as with "top left" coordinates. It doesn't show the exact same position as in top-left display mode, but definitely not the correct centered one. On a 2D data item it works as expected.

cmeyer commented 4 months ago

Ellipse position set to 0,0; data is (4,4),(32,32); display set to 'Pixels (Center)'

image