Hi,
I read previous mail about âcolormapsâ which reminded me to a question
I had about MPL colors.
Colors in MPL plots are dark, and pale, and not is some specific color
theme but itâs just pale dark.
I thought that usually people make plots brighter (as more attractive )
The default color cycle chosen is the same as many of the other popular plotting tools, however, we provide the mechanism to define your own cycles. Admittedly, this isnât quite as good as I would like it, but that is the rationale for the chosen default.
If you can, have a look at this plot I just made, and same image with
same named colors as set by CorelDraw for example:
http://i.imgur.com/y29xD.png
As you all probably know cyan is not cyan but teal, and green is with
50% green, and every color is not as expected, except red and blue.
I donât know much about color systems and color space, so thought to
ask why is it like this and if colors can be somehow differently
defined at user end?
If you import matplotlib.colors, you can modify the âcnamesâ dictionary like so:
import matplotlib.colors as mcolors
mcolors.cnames[âcyanâ] = mcolors.cnames[âtealâ]
mcolors.cnames[âgreenâ] = â#00FF00â
As for using a CMYK system, the idea has been floated before and I certainly would not be adverse to it. But for backwards compatibility, we would have to continue to support the RGB system. There has been talk about reworking the way colors are handled in matplotlib to use class objects in order to unify the myriad of ways that colors can be specified by the users. Such a scheme would make the simultaneous use of CMYK and RGB possible if they are both derived from a common base-class.
As for the assertion that HTML colors arenât used, that is incorrect. The named colors follow the HTML list. Here is our list:
https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/colors.py#L62
and here is the html list:
http://html-color-codes.info/color-names/
Cheers!
Ben Root
¡¡¡
On Sat, Jul 21, 2012 at 1:21 PM, klo uo <klonuo@âŚ287âŚ> wrote: