Skip to content

Commit

Permalink
Merge pull request #409 from Aikhjarto/unknown_hatches
Browse files Browse the repository at this point in the history
correctly show warning if unknown hatch identifier was used
  • Loading branch information
nschloe committed May 24, 2020
2 parents f07247c + 48822e1 commit adcf150
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tikzplotlib/_hatches.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def _mpl_hatch2pgfp_pattern(data, hatch, color_name, color_rgba):
"""
hatch = __validate_hatch(hatch)
try:
pgfplots_pattern = _MP_HATCH2PGF_PATTERN.get(hatch)
pgfplots_pattern = _MP_HATCH2PGF_PATTERN[hatch]
except KeyError:
warnings.warn("tikzplotlib: The hatch", hatch, "is ignored.")
return data, []
Expand Down

0 comments on commit adcf150

Please sign in to comment.