-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
"Qualitative" colormaps represented as continuous #881
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
Comments
On 05/18/2012 09:38 AM, endolith wrote:
As I read it, segmented (qualitative) maps should be generated with a I think we are stuck with the silly things the way they are. Eric
|
Ok, I wasn't aware of ListedColormap. Is there a way to use these colormaps with it? All the examples I see just use an explicit list, like I wonder if the |
I think this issue can be closed, based on #921 having been merged. |
#921 isn't related to this, but the docs change in #889 to discourage their use is. (endolith@cce4441#L0R1789) |
Thank you for the correction. |
I'm learning about all the colormaps to update the documentation. and it seems some were copied from ColorBrewer and converted into continuous smoothly-varying maps. But ColorBrewer has 3 types of schemes:
So the "qualitative" maps (Accent, Dark2, Paired, Pastel1, Pastel2, Set1, Set2, Set3) should not be smoothly-varying.
http://rgm2.lab.nig.ac.jp/RGM2/func.php?rd_id=RColorBrewer:ColorBrewer
It's possible to convert these to segmented maps: https://gist.github.com/2719900#file_accent.py
Should I go through them and do that and submit a patch? I'm not sure if the matplotlib colormaps are even meant to be used for categorical data like this.
The text was updated successfully, but these errors were encountered: