Skip to content
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

[SPRINT] Single letter colors different than full name colors [sprint] #2164

Closed
oscarnewman opened this issue Jun 28, 2013 · 13 comments
Closed
Milestone

Comments

@oscarnewman
Copy link

In matplotlib, the single letter colors, "y", "c", and "m", are darker than the colors you would get from using the full names of the colors, "yellow", "cyan", and "magenta". The colors from the full names are the actual hex colors.

Edit: Damon here. Updating to include 'sprint'.

@efiring
Copy link
Member

efiring commented Jun 28, 2013

Yes, this was a design decision long ago. I think the letter colors are similar to Matlab's, and intended to work well when used for thin lines, both in print and on the screen.

@mdboom
Copy link
Member

mdboom commented Jun 29, 2013

There is some mailing list discussion here:

http://matplotlib.1069221.n5.nabble.com/matplotlib-colors-vs-html-colors-td25679.html

Assuming we decide to leave "as-is" (which I think is where I'm falling on this), should we document this somewhere? It seems like a minor and distracting detail to point out in a tutorial, but maybe we should do something (as this does seem to pop up as a question now and again). Maybe we do this in an FAQ (and revive and update our FAQ page while we're at it).

@pelson
Copy link
Member

pelson commented Jun 29, 2013

How about producing a plot with all of the named colors in matplotlib? It doesn't have to go in the gallery, but could instead go in http://matplotlib.org/api/colors_api.html

@dmcdougall
Copy link
Member

@pelson There was a website somewhere, I think it was the scipy cookbook, that did this for all the colour maps.

Here it is.

@pelson
Copy link
Member

pelson commented Jun 29, 2013

I think it was the scipy cookbook, that did this for all the colour maps.

Our gallery also does this. The key is there is no plot of all the available colors (not colormaps).

@WeatherGod
Copy link
Member

In my tutorial, I provided a link from w3c schools for the list of HTML
colors, also noting that either spelling of "gray" is allowed.

Ben Root
On Jun 29, 2013 11:23 AM, "Phil Elson" notifications@github.com wrote:

I think it was the scipy cookbook, that did this for all the colour maps.

Our gallery also does this. The key is there is no plot of all the
available colors (not colormaps).


Reply to this email directly or view it on GitHubhttps://github.com//issues/2164#issuecomment-20232671
.

@dmcdougall
Copy link
Member

The key is there is no plot of all the available colors (not colormaps).

Yes. We are in agreement, but I don't think I expressed what I was trying to say very clearly.

We should have something in our gallery that plots all the colours with their names. The scipy cookbook (and also our gallery) already does this in the case of colour maps and I was trying to say we should use that as inspiration.

@mdboom
Copy link
Member

mdboom commented Jul 1, 2013

I agree. That would be a nice addition. I'm milestoning this for 1.3.x, as I think it's a reasonably small project that doesn't impact the core at all.

@efiring
Copy link
Member

efiring commented Oct 13, 2013

That was 3 months ago, with no action, so I am moving it up to 1.4. I hope we don't need any more 1.3 releases.

@fariza
Copy link
Member

fariza commented Feb 6, 2014

Is something like this what you where thinking about?
Of course there are problems with some names overlapping, and I don't know how to order them (sorted by color value maybe).
If it is, I will add examples/color/named_colors.py

figure_1

@efiring
Copy link
Member

efiring commented Feb 6, 2014

Maybe calculate the hsv, and sort first on hue, then on saturation, then on value?

@fariza
Copy link
Member

fariza commented Feb 10, 2014

The sorted version....

named_colors

@fariza
Copy link
Member

fariza commented Feb 17, 2014

Thi can be closed #2801

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants