Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.1k
Closed as not planned
Description
Bug report
Bug summary
Adding hatches results in a change in the face color of bars. The problem occurs when saved as PDF. Everything is ok with png.
Code for reproduction
importmatplotlib.pyplotaspltfig,ax=plt.subplots()ax.barh(2,4,edgecolor='black',facecolor='green',alpha=0.3)ax.barh(3,4,edgecolor='black',facecolor='green',hatch='///',alpha=0.3)fig.savefig('hbarplot.pdf')fig.savefig('hbarplot.png')
Actual outcome
Expected outcome
The plot in the pdf file to be the same as the one in png file.
Matplotlib version
- Operating system: Windows 10
- Matplotlib version: 3.0.3, conda, default
- Matplotlib backend (
print(matplotlib.get_backend())): Qt5Agg or module://ipykernel.pylab.backend_inline (problem occurs with both) - Python version: 3.7
