Skip to content

Hatching doesn't respect alpha #7992

Closed
Closed
@japborst

Description

@japborst

Bug report

Bug summary
When plotting using a hatch, alpha is not applied to the hatching

Code for reproduction

import matplotlib.pyplot as plt
plt.fill_between(range(10), [10]*10, hatch='/', alpha=0.5)
plt.show()

Actual outcome
Hatching is black with no alpha
Example

Expected outcome
Before matplotlib 2.0, the hatching was the color of the fill and alpha was respected

Matplotlib version

Windows 7
matplotlib 2.0.0
numpy 1.12.0
scipy 0.18.1
Installation through pip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions