Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ENH: add XKCD colorname -> hex mapping #5775

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

Merged
merged 11 commits into from
Mar 29, 2016
Prev Previous commit
Next Next commit
WIP color docs
  • Loading branch information
tacaswell committed Feb 14, 2016
commit b93bd5db6435c95f8428da5efa53200563d63771
4 changes: 1 addition & 3 deletions 4 doc/users/beginner.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ Beginner's Guide
legend_guide.rst
annotations_guide.rst
screenshots.rst
colors.rst
colormaps.rst
colormapnorms.rst



21 changes: 21 additions & 0 deletions 21 doc/users/colors.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. _colors:

*****************
Specifying Colors
*****************

In almost all places in matplotlib where a color can be specified by the user it can be provided as:

* ``(r, g, b)`` tuples
* ``(r, g, b, a)`` tuples
* hex string, ex ``#OFOFOF``
* float value between [0, 1] for gray level
* valid css4/X11 name
* valid name from the `XKCD color survey <http://blog.xkcd.com/2010/05/03/color-survey-results/>`__ This names maybe
prefixed by ``'XKCD'`` as the css4 names have priority
* One of ``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``

Internally, we are moving to storing all colors as RGBA quadruples.

Name clash between CSS4/X11 and XKCD
------------------------------------
Morty Proxy This is a proxified and sanitized view of the page, visit original site.