Skip to content
Closed
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
Also include previously-rejected keys
  • Loading branch information
wqian94 committed Jul 5, 2022
commit 47205bc3da81a4312aa87ba7028df16866a3b15e
10 changes: 8 additions & 2 deletions lib/matplotlib/axes/_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -3454,8 +3454,14 @@ def _upcast_err(err):

# Eject anything that's not acceptable by LineCollection.set()
lc_keys = inspect.signature(mcoll.LineCollection.set).parameters
for key in tuple(base_style.keys()): # Because we're resizing base_style
if key not in lc_keys:
rej_keys = ['marker', 'markersize', 'markerfacecolor',
'markeredgewidth', 'markeredgecolor', 'markevery',
'linestyle', 'fillstyle', 'drawstyle', 'dash_capstyle',
'dash_joinstyle', 'solid_capstyle', 'solid_joinstyle',
'dashes']
# Because we're resizing base_style
for key in tuple(base_style.keys()):
if key not in lc_keys or key in rej_keys:
base_style.pop(key, None)

# Make the style dict for the line collections (the bars).
Expand Down