-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC accessing named colors #9529
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
Conversation
Similarly to #9530 (comment) I think it'd be nice to have a link from http://matplotlib.org/api/colors_api.html to this example. |
# Base colors | ||
# =========== | ||
# | ||
# Available in Matplotlib since the age of dawn, the base colors offer the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments and actual colors are inverted between base colors and css4 colors.
sorted_names = [name for hsv, name in by_hsv] | ||
|
||
n = len(sorted_names) | ||
if n > 400: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would just stick to 4 columns everywhere, I don't think the overly wide figure at the bottom of https://2855-1385122-gh.circle-artifacts.com/0/home/circleci/project/doc/build/html/gallery/color/named_colors.html#sphx-glr-gallery-color-named-colors-py is really an improvement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I agree, it spans off my wide screen.
# Tableau colors | ||
# ============== | ||
# | ||
# The tableau colors are the default the default in Matplotlib since 2.0, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Duplicate "the default"
The example now displays all named colors.