Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b335716

Browse files
committed
correctly specify the type of the slider poly attribute
1 parent bdcc83b commit b335716

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/matplotlib/widgets.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -398,8 +398,8 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt=None,
398398
Notes
399399
-----
400400
Additional kwargs are passed on to ``self.poly`` which is the
401-
`~matplotlib.patches.Rectangle` that draws the slider knob. See the
402-
`.Rectangle` documentation for valid property names (``facecolor``,
401+
`~matplotlib.patches.Polygon` that draws the slider knob. See the
402+
`.Polygon` documentation for valid property names (``facecolor``,
403403
``edgecolor``, ``alpha``, etc.).
404404
"""
405405
super().__init__(ax, orientation, closedmin, closedmax,
@@ -657,8 +657,8 @@ def __init__(
657657
Notes
658658
-----
659659
Additional kwargs are passed on to ``self.poly`` which is the
660-
`~matplotlib.patches.Rectangle` that draws the slider knob. See the
661-
`.Rectangle` documentation for valid property names (``facecolor``,
660+
`~matplotlib.patches.Polygon` that draws the slider knob. See the
661+
`.Polygon` documentation for valid property names (``facecolor``,
662662
``edgecolor``, ``alpha``, etc.).
663663
"""
664664
super().__init__(ax, orientation, closedmin, closedmax,

0 commit comments

Comments
 (0)