seaborn
seaborn copied to clipboard
Consider providing exact color brewer palettes with sns.color_palette
Seaborn currently uses matplotlib's color maps to create discrete color palettes.
For color brewer palettes, these are close but not an exact match for the original, discrete colormaps. I find that Seaborn is usually a slightly washed out version of the originals.
For one concrete example, compare the 6 color RdYlGn from Seaborn (left) vs the original (from Palettable, right):
It would be nice to use these exact colormaps, possibly by using palettable (either as a dependency or repackaged into Seaborn's).
Sure that seems reasonable. The current approach just uses the continuous colormaps offered by matplotlib with a n approach that tries to keep the edges away from extreme values, which probably operates slightly differently than how the original maps were made. If it's simple to figure out how the smaller palettes are made from the continuous map programmatically, that might be best.