glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
735 stars 153 forks source link

Show note/warning when user needs to add dataset to image viewer multiple times #1489

Open astrofrog opened 6 years ago

astrofrog commented 6 years ago

To make an RGB image from a single dataset with multiple components, users need to add the dataset to an image viewer multiple times. We should detect this kind of case and show a warning/note in that case next to the layer list as this is not intuitive.

keflavich commented 5 months ago

Yeah, this was very unintuitive for me!

Relatedly, it would be really nice to have a data loader that recognizes RGB images (pngs, jpegs). Glue already recognizes AVM (hooray!), but then there's a lot of extra setup dragging in 3 different layers and coloring them appropriately.

jfoster17 commented 5 months ago

Often a biology data cube will be a true color image -- so three channels and the default way the user wants to view it is with each channel scaled between 0 and 255 and color-coded to pure red, pure green, pure blue. Currently this is a lot of clicking in the UI.

One option would be a plug-in that just sets this up correctly for a data cube (i.e. the user selects which channels are RGB and the plug-in creates a correctly configured image viewer). This is less discoverable than having something directly in the Image Viewer controls... though assuming we put the plug-in into the core package we could also provide a button that runs the plug-in from within the Layer Options or Viewer Options UI.