Skip to content

Commit adcf150

Browse files
authored
Merge pull request #409 from Aikhjarto/unknown_hatches
correctly show warning if unknown hatch identifier was used
2 parents f07247c + 48822e1 commit adcf150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tikzplotlib/_hatches.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _mpl_hatch2pgfp_pattern(data, hatch, color_name, color_rgba):
9191
"""
9292
hatch = __validate_hatch(hatch)
9393
try:
94-
pgfplots_pattern = _MP_HATCH2PGF_PATTERN.get(hatch)
94+
pgfplots_pattern = _MP_HATCH2PGF_PATTERN[hatch]
9595
except KeyError:
9696
warnings.warn("tikzplotlib: The hatch", hatch, "is ignored.")
9797
return data, []

0 commit comments

Comments
 (0)