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

Fix color map for some labels in the labels_layer #5

Open
constantinpape opened this issue May 24, 2020 · 3 comments
Open

Fix color map for some labels in the labels_layer #5

constantinpape opened this issue May 24, 2020 · 3 comments

Comments

@constantinpape
Copy link
Contributor

constantinpape commented May 24, 2020

Is there an option to fix the color for some of the labels in the labels_layer, @sofroniewn?
Ideally something like this:

fixed_colors = {1: `red`, 2: `green`, 3: `blue`}
viewer.add_labels(labels, fixed_colors=fixed_colors)

I have two different an application where this would come in handy:
using the same colors for the edge and point representation of semantic classes and hiding segments with annotations from the segmentation.

@sofroniewn
Copy link
Contributor

Not yet - this has been noted here, napari/napari#716. I can bump this as a the priority for next week.

@constantinpape
Copy link
Contributor Author

I can bump this as a the priority for next week.

Ok, that would be great!
I will leave a few more comments in the napari issue later.

@constantinpape
Copy link
Contributor Author

For having the same colors for points and edges using an image layer with fixed color map is actually more appropriate. I could not quite figure out how to set the color map I need though, see #6.

@constantinpape constantinpape mentioned this issue May 26, 2020
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants