Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
made suggested changes
  • Loading branch information
r3kste authored and Impaler343 committed Dec 22, 2024
commit 905ed8679f7fae54ad0a17318053aebb6dd5e178
2 changes: 1 addition & 1 deletion lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -690,7 +690,7 @@ def __init__(self):
self._linewidth = 1
self._rgb = (0.0, 0.0, 0.0, 1.0)
self._hatch = None
self._hatch_color = (0.0, 0.0, 0.0, 1.0)
self._hatch_color = None
self._hatch_linewidth = rcParams['hatch.linewidth']
self._url = None
self._gid = None
Expand Down
7 changes: 3 additions & 4 deletions lib/matplotlib/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,10 +174,9 @@ def __init__(self, *,
self._face_is_mapped = None
self._edge_is_mapped = None
self._mapped_colors = None # calculated in update_scalarmappable
self._hatch_color = mpl.rcParams['hatch.color']
if self._hatch_color == 'inherit':
self._hatch_color = mpl.rcParams['patch.edgecolor']
self._hatch_color = mcolors.to_rgba(self._hatch_color)
if (hatch_color := mpl.rcParams['hatch.color']) == 'inherit':
hatch_color = mpl.rcParams['patch.edgecolor']
self._hatch_color = mcolors.to_rgba(hatch_color)
Comment thread
timhoffm marked this conversation as resolved.
self._hatch_linewidth = mpl.rcParams['hatch.linewidth']
self.set_facecolor(facecolors)
self.set_edgecolor(edgecolors)
Expand Down