pgf-tikz / pgfplots

pgfplots - A TeX package to draw normal and/or logarithmic plots directly in TeX in two and three dimensions with a user-friendly interface and pgfplotstable - a TeX package to round and format numerical tables. Examples in manuals and/or on web site.
http://pgfplots.sourceforge.net/
200 stars 35 forks source link

[colorbrewer] Colormap `PuOr` defined in reverse order #108

Closed pgf-tikz-bot closed 4 years ago

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/ Author: mschneiderwgt Timestamp: 2016-02-17 12:01:22.653000

The colormap PuOr is not from Purple (low) to Orange (high) as expected, but from Orange to Purple.

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#092b Author: mschneiderwgt Timestamp: 2016-02-17 12:01:56.482000

A fix would be to use

\pgfutil@definecolor{PuOr-O}{RGB}{127,59,8} \pgfutil@definecolor{PuOr-N}{RGB}{179,88,6} \pgfutil@definecolor{PuOr-M}{RGB}{230,97,1} \pgfutil@definecolor{PuOr-L}{RGB}{224,130,20} \pgfutil@definecolor{PuOr-K}{RGB}{241,163,64} \pgfutil@definecolor{PuOr-J}{RGB}{253,184,99} \pgfutil@definecolor{PuOr-I}{RGB}{254,224,182} \pgfutil@definecolor{PuOr-H}{RGB}{247,247,247} \pgfutil@definecolor{PuOr-G}{RGB}{216,218,235} \pgfutil@definecolor{PuOr-F}{RGB}{178,171,210} \pgfutil@definecolor{PuOr-E}{RGB}{153,142,195} \pgfutil@definecolor{PuOr-D}{RGB}{128,115,172} \pgfutil@definecolor{PuOr-C}{RGB}{94,60,153} \pgfutil@definecolor{PuOr-B}{RGB}{84,39,136} \pgfutil@definecolor{PuOr-A}{RGB}{45,0,75}

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#eba0 Author: mo-gul Timestamp: 2016-02-21 17:44:58.123000

You are absolutely right that the scheme name doesn't fit the order of colors in it. Good catch.

It seems that this "bug" already is present in the source on http://colorbrewer2.org. I have written Cynthia an email an we will see what should be the right order, i.e., if the name of the scheme is wrong or if the colors are given in the wrong order.

A hint that the colors are given in the wrong order can be found in e.g. https://www.census.gov/population/www/cen2000/atlas/pdf/censr01-103.pdf#page=2 where the scheme starts with a Purple color.

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#1625 Author: mo-gul Timestamp: 2016-02-21 17:50:42.762000

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#aaf1 Author: mo-gul Timestamp: 2016-03-13 14:02:24.976000

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#4263 Author: cfeuersaenger Timestamp: 2016-06-02 10:11:53.249000

@ Stefan Pinnow I am unsure how to proceed right now, seems as if it is "need input from Cynthia". Or is it clear how to fix the issue?

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#b337 Author: mo-gul Timestamp: 2016-06-02 21:00:40.027000

Because Cynthia didn't answer up to now so I doubt she ever will. As I already stated I think the colors are already defined wrong on the website and are correct shown in the "Atlas". So my recommendation is to change the colors according to Markus' suggestion.

Unfortunately this would lead to an incompatible change. But seeing it as removing a "bug" is hopefully justifying that change. In addition when the feature request reverse colormaps would be implemented, some code already using this colormap could easily be adapted to work again.

pgf-tikz-bot commented 8 years ago

Migrated from SourceForge https://sourceforge.net/p/pgfplots/bugs/108/#f3d7 Author: cfeuersaenger Timestamp: 2016-08-05 12:36:52.387000