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

afmhot is Not A Perceptually Uniform Colormap #85

Closed
Miserlou opened this issue Apr 11, 2019 · 3 comments
Closed

afmhot is Not A Perceptually Uniform Colormap #85

Miserlou opened this issue Apr 11, 2019 · 3 comments

Comments

@Miserlou
Copy link

Cool picture, guys! But it seems like you've chosen a non-perceptually uniform colormap, which means that humans are likely to slightly misinterpret the image. It'd be great to see this historic image in something more human-comprehensible, like viridis or plasma rather than afmhot!

@achael
Copy link
Owner

achael commented Apr 11, 2019

Hi Miserlou! You are absolutely right that afmhot is not perceptually uniform, however the images plotted in our papers (https://iopscience.iop.org/journal/2041-8205/page/Focus_on_EHT) do not use amfhot. Instead, they use "amfhot_10us", a new colormap that is perceptually uniform and symmetric-in-chroma while approximating the appearance of afmhot. It was designed for the eht and implemented in the ehtplot library by Chi-kwan Chan and Lia Medeiros (https://github.com/liamedeiros/ehtplot).

Unfortunately, vanilla afmhot does remain the current default in the eht-imaging library for historical reasons, but this could change soon. Rest assured we thought of this issue and the paper images are indeed perceptually uniform!

@Miserlou
Copy link
Author

Ah, wonderful, thanks for your reply!

@achael achael closed this as completed Apr 11, 2019
@jbednar
Copy link

jbednar commented Apr 15, 2019

Ah, that explains a lot! The only perceptually uniform hot colormap that I've seen previously is the fire colormap included with our colorcet package, and your results looked perceptually uniform but not precisely those same colors. On investigating, it was very confusing to see afmhot throughout the eht-imaging source code, and to see very nonuniform plots when re-running your examples, but from this issue it's clear. I would highly recommend that you change the default in eht-imaging to avoid encouraging the spread of afmhot.

For anyone who needs to know why not to use afmhot, you can see that it completely muddles the top end of the color values, making most of those colors indistinguishable:

image

The fire and presumably afmhot_10us maps allow all the numerical values to be distinguished across the full range, making the "comb" modulations here equally visible for all values:

image

These differences are very dramatic in the actual data as well, with afmhot looking overexposed because all the bright values blur together:

image

compared to fire showing all the detail for every numerical value range:

image

Glad to see you caught that before publication, and please help encourage others to use perceptually uniform colormaps as well!

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

3 participants