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

set the min, middle, max value of the colorbar #529

Open
maque4004 opened this issue Jun 30, 2021 · 2 comments
Open

set the min, middle, max value of the colorbar #529

maque4004 opened this issue Jun 30, 2021 · 2 comments

Comments

@maque4004
Copy link

Hi empress developer,

Can I set the min and max value of the colorbar when I add a layer of boxplot? and how?
For example, I'd like to set the max and min value of the colorbar to (2, -2)
image

Thanks in advance!

Best,
Jericho

@maque4004 maque4004 changed the title different layer share same colorbar set the min, middle, max value of the colorbar Jun 30, 2021
@kwcantrell
Copy link
Collaborator

Hello @maque4004, we are currently in the processes of adding this feature to empress. If you are interested, you can checkout our development branch (see #521). Additional, somewhat related, #484 will also add the ability to color the tree branches using a gradient color scheme.

@maque4004
Copy link
Author

Thanks @kwcantrell
Now I ran the codes as described in #521
git checkout -b kwcantrell-center-colormaps master
git pull https://github.com/kwcantrell/empress.git center-colormaps
pip install -e .
qiime dev refresh-cache

So I can set the boundaries of the colorbar, but it raised an error below when I set the min value to a negative value.
(If I set the min value >= 0, it can work)
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants