empress icon indicating copy to clipboard operation
empress copied to clipboard

Center diverging colormaps at 0

Open jwdebelius opened this issue 3 years ago • 3 comments

Hi Empress team,

I'm enjoying this a lot so far!

Right now, I have a colormap between -1.49 to 1.69, centered at 0.1. Which is okay-ish, but slightly visually confusing.

Im wondering if it would be possible here (an possibly in emperor) to center diverging colormaps (maybe a as a check box?). I think it is more intuitive that positive values are all one color (say red) and negative values are all another (blue), with equal color weight.

The proposed behavior would take 0-centered colormap, which I usually approach in other settings by finding find the most extreme upper/lower value, and set the colormap to reflect that.

Thanks! Justine

jwdebelius avatar May 26 '21 12:05 jwdebelius

Hi, @jwdebelius

This is definitely on our radar - see https://github.com/biocore/empress/issues/365#issuecomment-729897107. Would you prefer your proposed checkbox approach to specifying numerical values for end/midpoints?

gibsramen avatar May 26 '21 16:05 gibsramen

Hi @gibsramen,

I'm glad to know I'm not the only one. I really like the colorbrewer colormap, so the ability to say show RdBu scaled between -1.75 and 1.75 would kind of be my idea. That automatically sets my central value, and lets me line up with colormaps that might exist elsewhere.

jwdebelius avatar May 26 '21 19:05 jwdebelius

Agreed -- it would be great to have this in. I'll see if we can get it added in soon :)

fedarko avatar May 27 '21 03:05 fedarko