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

distinct color by class #1882

Closed
lpatiny opened this issue Nov 7, 2022 · 2 comments · Fixed by #2078 or #1847
Closed

distinct color by class #1882

lpatiny opened this issue Nov 7, 2022 · 2 comments · Fixed by #2078 or #1847
Assignees
Labels
enhancement New feature or request

Comments

@lpatiny
Copy link
Member

lpatiny commented Nov 7, 2022

Recolor spectra by class using contextual menu (clicking on the header of the spectra list)

@lpatiny lpatiny added the enhancement New feature or request label Nov 7, 2022
@hamed-musallam
Copy link
Member

@lpatiny
What class do you mean, Are you meaning we have a pre-set list of colors and we can select one of them

@lpatiny
Copy link
Member Author

lpatiny commented Jan 7, 2023

Now that it is possible to load meta information this feature can be implemented.

You can load meta information and display it in a column in the Spectra Panel

image

A very useful feature is to be able to recolor the spectra based on the distinct values present in a specific column.

So we should be able to click on the header of the table and add a contextual menu with the only option 'Recolor based on distinct value'

When this option is selected we will first check how many categories we have (in this case Pre, W2, W6 and W8). So for those 4 categories we will select a new color (based on our selected colors) and we will set this new color for all the spectra.

In the future (or directly ?) we could have a dialog box that allows to have the preselected colors but also the possibility to provide custom colors for each category.

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
2 participants