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

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

Closed
wants to merge 2 commits into from
Closed

DOC accessing named colors #9529

wants to merge 2 commits into from

Conversation

NelleV
Copy link
Member

@NelleV NelleV commented Oct 22, 2017

The example now displays all named colors.

@anntzer
Copy link
Contributor

anntzer commented Oct 22, 2017

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
Copy link
Contributor

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:
Copy link
Contributor

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.

Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Duplicate "the default"

@tacaswell tacaswell added this to the v2.1.0-doc milestone Oct 23, 2017
@NelleV NelleV closed this Nov 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.