I have been working on creating interactive spectra for all viable objects in the LEGA-C survey like the one shown below.

Interactions:

Clicking on a label in the legend of the figure will mute, or 'hide', the data it describes.

Clicking and dragging to draw a box around data will zoom into the data you have drawn a box around.

In the top-right portion of the figure, there are additional tools such as a reset button and a "Pan Tool" that will let you pan the data horizontally.

Finally, the buttons under the figure will toggle the emissions-/absorption-line bands and labels on/off.

Another example of interactive data: multi-panel connections.

Tools added to this figure are the "Wheel Zoom", which allows you to zoom into a panel centered on your mouse position, the "Lasso Select" tool, which allows you to draw any shape around the data, and the Hover tool which will provide a basic description of the objects under your cursor.

Similar to the spectra above, clicking on a legend item will mute the data described within that specific panel. However, selecting data using either Box Select or Lasso Select will show only the selected data across all panels.

These figures were created using the Bokeh package from Python v3.7.

© 2020 GitHub, Inc. Terms Privacy Security Status Help Contact GitHub Pricing API Training Blog About