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

overlay for fixed values aka labels? #18

Open
gdevenyi opened this issue Sep 2, 2020 · 1 comment
Open

overlay for fixed values aka labels? #18

gdevenyi opened this issue Sep 2, 2020 · 1 comment

Comments

@gdevenyi
Copy link

gdevenyi commented Sep 2, 2020

I have a set of labels I want to overlay on my anatVol.

I can almost get what I want by overriding the col with a fixed value colourmap, however, it gets smoothed into a continuous map somewhere inside the code:

col = c("#bf823b","#9473c6","#6ca75d","#cc546d"),

image

@jasonlerch
Copy link
Contributor

We tend to accomplish this by directly defining colours for each label rather than using a look-up table. I.e. the colour_hex_triplet from our mouse anatomy tree. The smoothing you describe happens quite deeply somewhere in the grid library, and also is (if I remember) somewhat dependent on output (i.e. looks different in pdf vs png).

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