Skip to content
Merged
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
fix errors in processing handle style
  • Loading branch information
ianhi committed Jun 24, 2021
commit e160db4d3b58f124f26711bed68c06a30a676084
6 changes: 4 additions & 2 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,8 +425,9 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
self.valinit = valinit

defaults = {'facecolor': 'white', 'edgecolor': '.75', 'size': 10}
handle_style = {} if handle_style is None else handle_style
marker_props = {
f'marker{k}': v for k, v in {**defaults, **handle_style}
f'marker{k}': v for k, v in {**defaults, **handle_style}.items()
}

if orientation == 'vertical':
Expand Down Expand Up @@ -690,8 +691,9 @@ def __init__(
self.valinit = valinit

defaults = {'facecolor': 'white', 'edgecolor': '.75', 'size': 10}
handle_style = {} if handle_style is None else handle_style
marker_props = {
f'marker{k}': v for k, v in {**defaults, **handle_style}
f'marker{k}': v for k, v in {**defaults, **handle_style}.items()
}

if orientation == "vertical":
Expand Down