-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Added exported colors to colors.api #25574
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
@MikiPWata Do you think it is worth adding a note that these are dictionaries mapping names -> hex values as strings? |
yes, I think it would be helpful, and it might be even better if I add a reference to https://matplotlib.org/devdocs/gallery/color/named_colors.html |
Yes please! You can keep pushing commits to this branch and it will automatically update. |
doc/api/colors_api.rst
Outdated
Exported colors | ||
--------------- | ||
|
||
.. note:: |
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 don't think this needs to be in a note, can can just be normal prose.
Maybe something like
The data used to populate the :ref:
named colors
is exposed as dictionaries that map color name to hex string
?
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.
Got it!
I will squash all the commit once it's good to go |
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.
LGTM otherwise; feel free to squash.
04d7692
to
9f5f8c4
Compare
Thanks @MikiPWata! Congratulations on your first PR to Matplotlib 🎉 We hope to hear from you again. |
…574-on-v3.7.1-doc Backport PR #25574 on branch v3.7.1-doc (DOC: Added exported colors to colors.api)
…574-on-v3.7.x Backport PR #25574 on branch v3.7.x (DOC: Added exported colors to colors.api)
PR Summary
closes #25521
PR Checklist
Documentation and Tests
pytest
passes)Release Notes
.. versionadded::
directive in the docstring and documented indoc/users/next_whats_new/
.. versionchanged::
directive in the docstring and documented indoc/api/next_api_changes/
next_whats_new/README.rst
ornext_api_changes/README.rst