Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple lines on the same plot, from the same file #1734

Open
Pasarus opened this issue Jan 20, 2025 · 0 comments
Open

Multiple lines on the same plot, from the same file #1734

Pasarus opened this issue Jan 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@Pasarus
Copy link

Pasarus commented Jan 20, 2025

Is your feature request related to a problem?

Yes, users often need to compare multiple sets of data as 1D plots that need to be plotted alongside each other (often called overplotting or multi-plotting). Currently, if I have a 2D set of data and I access the Line plot I get this UI feature:
Image

This is great for quickly viewing individual 1D datasets but doesn't allow direct comparison of data.

But whilst there is support for Auxillary lines in the h5lib it doesn't seem evident to me anywhere that we can plot those in the h5web application.

Requested solution or feature

I would like for a solution to plot multiple lines as part of the h5web app. Say I have 5 lots of 1D data in a 2D dataset, it'd be great to be able to instead of this Line plot access scrollbar have a range of toggles for each set of 1D data (each line in the matrix view). Not sure I have communicated that well, so please ask for clarification if that is unclear.

Say I have this data:

Image

I'd like to plot them all against each other something like this:

Image
Image

Perhaps a pop-up or menu similar to other applications such as this:

Image

This is where you can select the spectra (1D sets of data) to plot on the line plot.

I'd be happy for suggestions on how to implement this as it's not obvious to me how it would fit into the current 1D plot interface that currently exists. Perhaps an alternative view or toggle that allows adding lines as a sort of pop-up or extra side menu.

Alternatives you've considered

I can drag the slider between data to see if they look similar but this is tough to be confident in the comparison. Using an alternative solution is unideal as I would like to keep the user experience consistent between normal data visualisation of nxs files and others.

Additional context

@Pasarus Pasarus added the enhancement New feature or request label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant