mpl-extensions / mpl-interactions

Sliders to control matplotlib and other interactive goodies. Works in any interactive backend and even uses ipywidgets when in a Jupyter notebook
https://mpl-interactions.rtfd.io
BSD 3-Clause "New" or "Revised" License
132 stars 20 forks source link

hyperspectral point picker #91

Open ianhi opened 4 years ago

ianhi commented 4 years ago

Problem

It's annoying to look at hyperspectral raman images.

Proposed Solution

A la heatmap slicer two subplots

Additional context

hyperspy has essentially exactly the above already: http://hyperspy.org/hyperspy-doc/current/user_guide/visualisation.html#multidimensional-spectral-data

I think the argument for adding it here is that this could be useful to people outside of hyperspectral imaging. It also feels a bit more transparent to me to work with numpy arrays than have to learn another libary. idk though maybe this isn't worth it

ianhi commented 4 years ago

Should allow for BF and spectrum arrays to have different XY dimensions so long as a transform is provided between them

ianhi commented 3 years ago

actuallt the hyperspy version isn't exactly the same as what's proposed here. I think that for them the plot that you click on is always made out of the spectra. there's no allowance for BF images

ianhi commented 3 years ago

I think that this should follow in the footsteps of the scatter_selector introduced in #141 and there should be a image_position_click widget or soemthing with a more meanigful name. It could also have a transform argument that allows for transforming the (x,y) -> (X, Y) which defaults to the unitary transform

ianhi commented 3 years ago

This probably belongs elsewhere or at the very least could be built with/inpsired by https://github.com/ianhi/mpl-point-clicker