-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Open
Labels
backend: pgfkeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actionstatus: confirmed bugstatus: has patchpatch suggested, PR still neededpatch suggested, PR still needed
Description
Bug report
Bug summary
The hatch line width does not take effect when saving figure with the pgf
backend. It is always drawn with a width of 1.
Code for reproduction
import matplotlib.pyplot as plt
import matplotlib as mpl
from matplotlib.backends.backend_pgf import FigureCanvasPgf
mpl.backend_bases.register_backend('pdf', FigureCanvasPgf)
mpl.rcParams['hatch.linewidth'] = 0.1
plt.bar(1, 1, color='white', edgecolor='black', hatch='/')
plt.savefig('hatch.pdf') # Hatch line width will be 1.
plt.show() # Hatch line width will be 0.1 as expected.
Actual outcome
Expected outcome
Matplotlib version
- Operating system: macOS 10.14.6
- Matplotlib version: 3.1.1
- Matplotlib backend: pgf
- Python version: 3.6.3
Matplotlib installed via pip
.
daeh
Metadata
Metadata
Assignees
Labels
backend: pgfkeepItems to be ignored by the “Stale” Github ActionItems to be ignored by the “Stale” Github Actionstatus: confirmed bugstatus: has patchpatch suggested, PR still neededpatch suggested, PR still needed