You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just noticed that out of the diverging colorbrewer colormaps listed here
Only the first and last ones are oriented in the same way that https://colorbrewer2.org/#type=diverging is. In other words rdylgn, piyg, and prgn should be reversed to match the original colormaps. Note that I have not checked other colormaps!
I think colorbrewer chose these orientations because we traditionally expect red-ish colors to represent the most positive values (i.e., at the top/right/end of the colormap).
That being said, colorbrewer's naming convention itself is not consistent, e.g., RdBu starts with blue (at the bottom) while PuOr starts with orange purple (edited)...
So maybe it is worth correcting colorbrewer's inconsistency here and only having names that match the color order? I.e., RdBu would go from red to blue. An ideal solution is probably to also allow for BuRd in this case, which would go blue to red. What do you think?
The text was updated successfully, but these errors were encountered:
Good catch. I have opted instead to match the diverging colormap order to their names rather than the original orders. This required reversing of the RdBu colormap. The colormaps can be easily reversed using MATLAB's built-in flipud(...) function.
Just noticed that out of the diverging colorbrewer colormaps listed here
Only the first and last ones are oriented in the same way that https://colorbrewer2.org/#type=diverging is. In other words
rdylgn
,piyg
, andprgn
should be reversed to match the original colormaps. Note that I have not checked other colormaps!I think colorbrewer chose these orientations because we traditionally expect red-ish colors to represent the most positive values (i.e., at the top/right/end of the colormap).
That being said, colorbrewer's naming convention itself is not consistent, e.g.,
RdBu
starts with blue (at the bottom) whilePuOr
starts withorangepurple (edited)...So maybe it is worth correcting colorbrewer's inconsistency here and only having names that match the color order? I.e.,
RdBu
would go from red to blue. An ideal solution is probably to also allow forBuRd
in this case, which would go blue to red. What do you think?The text was updated successfully, but these errors were encountered: