-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
DOC: Better visualization for the default color cycle example #28888
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
a43f217
to
e4b68de
Compare
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 almost like this more for the color reference docs than the gallery, but definitely agree that this is a more informative image
We also have "Colormap reference" and "List of named colors" in the gallery. They are likewise a reference. It you want to move them, all three should move together. But that's for another time. I'm only concerned with a better visual representation of the content for now. |
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.
Also, a minor thing, but since we normally read top-to-bottom, maybe the colours should have C0 at the top?
def f(x, a): | ||
return 0.85 * a * (1 / (1 + np.exp(-x)) + 0.2) |
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 know what this is from reading it (though I do understand from the final image). Maybe could do with a comment or docstring.
The current visualization is quite messy ( https://matplotlib.org/stable/gallery/color/color_cycle_default.html). Let's focus on: - giving a one clear sequence - giving the color names as 'CN' notation and named colors - showing lines and patches (colors appear substantially different in thin lines and filled areas) And don't bother with: - multiple line widths - they are only a slight visual variation (compared to patches) and multiple widths clutter the example - black background: It's enough to show the default color cycle on the default background.
1b2ec93
to
582459f
Compare
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.
gonna leave this in case @QuLogic still has feedback but yay is really nice!
The current visualization is quite messy (
https://matplotlib.org/stable/gallery/color/color_cycle_default.html).
Let's focus on:
And don't bother with:
New rendered example:
