MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / set_label_props

Method set_label_props

lib/matplotlib/widgets.py:1176–1192  ·  view source on GitHub ↗

Set properties of the `.Text` labels. .. versionadded:: 3.7 Parameters ---------- props : dict Dictionary of `.Text` properties to be used for the labels. Same format as label_props argument of :class:`RadioButtons` or :c

(self, props)

Source from the content-addressed store, hash-verified

1174 self.ax.draw_artist(self._buttons)
1175
1176 def set_label_props(self, props):
1177 """
1178 Set properties of the `.Text` labels.
1179
1180 .. versionadded:: 3.7
1181
1182 Parameters
1183 ----------
1184 props : dict
1185 Dictionary of `.Text` properties to be used for the labels. Same
1186 format as label_props argument of :class:`RadioButtons` or
1187 :class:`CheckButtons`.
1188 """
1189 _api.check_isinstance(dict, props=props)
1190 props = _expand_text_props(props)
1191 for text, prop in zip(self.labels, props):
1192 text.update(prop)
1193
1194 @_call_with_reparented_event
1195 def _clicked(self, event):

Callers 2

test_radio_buttons_propsFunction · 0.80
test_check_button_propsFunction · 0.80

Calls 2

_expand_text_propsFunction · 0.85
updateMethod · 0.45

Tested by 2

test_radio_buttons_propsFunction · 0.64
test_check_button_propsFunction · 0.64