spacetelescope / jdaviz

JWST astronomical data analysis tools in the Jupyter platform
https://jdaviz.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
142 stars 74 forks source link

JDAT-1223: Tiling images #521

Closed pllim closed 3 years ago

pllim commented 3 years ago

Arrange multiple image viewers in a grid. ~Implement a "Tile" Button to switch between a "tile view" and allow the user to decide the layout that way.~

UI/UX: https://www.stsci.edu/~jkotler/Imviz/#id=9cl0gf&p=imviz_ui&c=1

imviz_tiling

Deferred: "Tile" button. Exact UI/UX appearance being handled in the frontend in separate ticket(s).

https://jira.stsci.edu/browse/JDAT-1223

TODO

pllim commented 3 years ago

@astrofrog , @PatrickOgle keeps asking about how various other features (e.g., WCS locking at #613 and so on) would work with this one. Perhaps this needs to be implemented sooner than later.

pllim commented 3 years ago

So, in reviewing #613 , this might already be possible, just not exactly looking like the UX/UI design.

Standalone

Screenshot 2021-05-25 104930

Classic notebook

Screenshot 2021-05-25 105936

pllim commented 3 years ago

To answer some more questions...

Can I load multiple extensions and display them in separate tiles?

Yes. Example:

imviz.load_data('jbt7a3kaq_flc.fits[SCI]')  # SCI,1
imviz.load_data('jbt7a3kaq_flc.fits[DQ]')  # DQ,1
imviz.load_data('jbt7a3kaq_flc.fits[SCI,2]')
imviz.load_data('jbt7a3kaq_flc.fits[DQ,2]')

Screenshot 2021-05-25 132221

Disclaimer: Imviz parser behavior might change in the future depending on how #600 turns out.

Can you close one of the tiles?

Yes, click on the "x" next to "Test" or to the far right but sometimes it closes more than one windows or all of them! I am not sure what drives the inconsistent behavior. @astrofrog , do you know?

Screenshot 2021-05-25 133347

Can you keep moving the tiles?

Yes. Click and drag. There will be dotted lines to guide you.

Screenshot 2021-05-25 135004

pllim commented 3 years ago

The bug will be followed up on over at #663 . This feature is marked as complete.