Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
DOC: Better doc of colors#22912
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
timhoffm commentedApr 26, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Side-remark: It would be really cool if one could specify that individual code sections can be/are folded (or maybe completely omitted?) in sphinx-gallery. This is one of the gallery entries in which only the generated figure is relevant not the code that is generating it. |
Agreed, I openedsphinx-gallery/sphinx-gallery#953 in case someone wants to discuss further and possibly implement! |
Uh oh!
There was an error while loading.Please reload this page.
The section titles and figure titles are redundant now. I think we can leave the figure titles out then. |
The only time I can see it being useful is if someone wants to save the image, or link to it from somewhere else, then the title is gone for them. But I'll remove it since this seems rare enough not to worry about |
@larsoner is there a recommended way to suppress unneeded output from a block in sphinx-gallery? I could imagine:
|
You could always do an assignment:
But for that specific example an easy fix is tonot return the figure |
PR Summary
Improvehttps://matplotlib.org/3.5.0/gallery/color/named_colors.html by:
multiimg
where each takes up half the horizontal space. This should make it much more readable... contents
so that each color category is easily accessible from the top.You'll have to ignore my dark mode below since I took the
3.5
one from the actual URL but built my changes locally:PR Checklist
Tests and Styling
Has pytest style unit tests (andpytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
New features are documented, with examples if plot related.New features have an entry indoc/users/next_whats_new/
(follow instructions in README.rst there).API changes documented indoc/api/next_api_changes/
(follow instructions in README.rst there).