ome / omero-figure

An OMERO.web app for creating Figures from images in OMERO
http://figure.openmicroscopy.org
GNU Affero General Public License v3.0
15 stars 30 forks source link

Labels for x/y/z #318

Closed joshmoore closed 1 year ago

joshmoore commented 5 years ago

When zooming and when showing multiple Z slices (see recent 1000+ z-slide volumes) being able to label with the xyz coordinates would be useful.

joshmoore commented 5 years ago

@will-moore : this was something else I ran into while trying to create https://github.com/ome/omero-figure/issues/319#issuecomment-454730333

joshmoore commented 5 years ago

screen shot 2019-01-16 at 11 36 19

will-moore commented 5 years ago

If I were to choose x or y then the label would show the current coordinate of the top-left corner of the viewport? This is dynamic, since it can change when you change the shape of the panel. E.g if you resize a panel from a horizontal rectangle to a vertical rectangle then the top-left corner is at a different point (even if you don't pan). Would you want a single label for coordinates e.g. x: 100, y: 250? The current behaviour for T-index is to show a single number (e.g. 10 not T: 10) so if we did the same for Z then you could end up with labels (one per row) like:

10
5

instead of

T: 10
Z: 5

So maybe we need to re-think the existing T-index behaviour.

joshmoore commented 5 years ago

Z: # seems like a good start. X/Y is certainly trickier, and the resize update would be necessary, so if that's not possible, I'd file it as a more advanced issue. But yes, having ($x, $y) in one of the corners would be helpful.