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
20 changes: 14 additions & 6 deletions lib/matplotlib/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,8 +1016,11 @@ def __init__(self, ax, labels, actives=None, *, useblit=True,

.. versionadded:: 3.7

label_props : dict, optional
Dictionary of `.Text` properties to be used for the labels.
label_props : dict of lists, optional
Dictionary of `.Text` properties to be used for the labels. Each
dictionary value should be a list of at least a single element. If
the list is of length M, its values are cycled such that the Nth
label gets the (N mod M) property.

.. versionadded:: 3.7
frame_props : dict, optional
Expand Down Expand Up @@ -1117,7 +1120,8 @@ def set_label_props(self, props):
Parameters
----------
props : dict
Dictionary of `.Text` properties to be used for the labels.
Dictionary of `.Text` properties to be used for the labels. Same
format as label_props argument of :class:`CheckButtons`.
"""
_api.check_isinstance(dict, props=props)
props = _expand_text_props(props)
Expand Down Expand Up @@ -1585,8 +1589,11 @@ def __init__(self, ax, labels, active=0, activecolor=None, *,

.. versionadded:: 3.7

label_props : dict or list of dict, optional
Dictionary of `.Text` properties to be used for the labels.
label_props : dict of lists, optional
Dictionary of `.Text` properties to be used for the labels. Each
dictionary value should be a list of at least a single element. If
the list is of length M, its values are cycled such that the Nth
label gets the (N mod M) property.

.. versionadded:: 3.7
radio_props : dict, optional
Expand Down Expand Up @@ -1695,7 +1702,8 @@ def set_label_props(self, props):
Parameters
----------
props : dict
Dictionary of `.Text` properties to be used for the labels.
Dictionary of `.Text` properties to be used for the labels. Same
format as label_props argument of :class:`RadioButtons`.
"""
_api.check_isinstance(dict, props=props)
props = _expand_text_props(props)
Expand Down
Loading