Skip to content

DOC: Adapt some colors in examples #21226

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

Merged
merged 1 commit into from
Oct 1, 2021

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Sep 30, 2021

  • Fill between alpha: Use default color palette more
  • Hatch filled historgrams: Soften fill colors using alpha
  • Bar chart with gradients: Replace the strong orange background
    gradient with softened red-green horizontal gradient. This looks
    nicer and the red-green background could even be used as a semantic
    good-bad indicator.
  • Stackplot: Soften fill colors using alpha

@timhoffm timhoffm added this to the v3.5.0 milestone Sep 30, 2021
Comment on lines +63 to +64
S1 = 0.004 + 0.02*np.random.randn(Nsteps, Nwalkers)
S2 = 0.002 + 0.01*np.random.randn(Nsteps, Nwalkers)
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: Exchanging the two distributions results in a nicer image: S2 is drawn on top of S1. Drawing the artist with the smaller area on top looks better. One could achive the same effect by rearranging everything below, but since the data are arbitrary anyway, this change here is easiest.

- Fill between alpha: Use default color palette more
- Hatch filled historgrams: Soften fill colors using alpha
- Bar chart with gradients: Replace the strong orange background
  gradient with softened red-green horizontal gradient. This looks
  nicer and the red-green background could even be used as a semantic
  good-bad indicator.
- Stackplot: Soften fill colors using alpha
@jklymak jklymak merged commit 30fd3d1 into matplotlib:master Oct 1, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Oct 1, 2021
@timhoffm timhoffm deleted the examples-colors branch October 1, 2021 10:32
timhoffm added a commit that referenced this pull request Oct 1, 2021
…226-on-v3.5.x

Backport PR #21226 on branch v3.5.x (DOC: Adapt some colors in examples)
tacaswell pushed a commit to tacaswell/matplotlib that referenced this pull request Oct 12, 2021
tacaswell pushed a commit that referenced this pull request Oct 20, 2021
DOC: Adapt some colors in examples
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.

2 participants