Legend hatching fixes by QuLogic · Pull Request #8575 · matplotlib/matplotlib · GitHub
Skip to content

Legend hatching fixes - #8575

Merged
phobson merged 3 commits into
matplotlib:v2.0.xfrom
QuLogic:legend-hatching
May 8, 2017
Merged

phobson merged 3 commits into
matplotlib:v2.0.xfrom
QuLogic:legend-hatching

Conversation

@QuLogic

@QuLogic QuLogic commented May 5, 2017

Copy link
Copy Markdown
Member

Two fixes for hatching in legends:

  • PolyCollections don't show hatching when the default colour is used. This is because the set edge colour is copied which means the default behaviour of finding the hatch colour from rcParams is not done. Instead copy the "original" edge colour which triggers any other processing when setting the edge colour on the legend patch.
  • Patchs show the wrong colour when an explicit one is set; this is simply because the hatching colour is not copied with other settings.

I added tests for both these types of artists; are there any others that might work differently that should be added?

@QuLogic QuLogic added this to the 2.0.2 (next bug fix release) milestone May 5, 2017
@phobson

phobson commented May 5, 2017

Copy link
Copy Markdown
Member

@tacaswell tacaswell closed this May 7, 2017
@tacaswell tacaswell reopened this May 7, 2017
@tacaswell

Copy link
Copy Markdown
Member

@tacaswell tacaswell modified the milestones: 2.0.3 (next bug fix release), 2.0.2 (critical bug fixes from 2.0.1) May 7, 2017
@phobson
phobson merged commit c192e37 into matplotlib:v2.0.x May 8, 2017
@QuLogic
QuLogic deleted the legend-hatching branch May 8, 2017 02:16
@efiring efiring mentioned this pull request May 18, 2021
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants