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

Method update

lib/matplotlib/text.py:249–263  ·  view source on GitHub ↗
(self, kwargs)

Source from the content-addressed store, hash-verified

247 self.set_antialiased(mpl._val_or_rc(antialiased, 'text.antialiased'))
248
249 def update(self, kwargs):
250 # docstring inherited
251 ret = []
252 kwargs = cbook.normalize_kwargs(kwargs, Text)
253 sentinel = object() # bbox can be None, so use another sentinel.
254 # Update fontproperties first, as it has lowest priority.
255 fontproperties = kwargs.pop("fontproperties", sentinel)
256 if fontproperties is not sentinel:
257 ret.append(self.set_fontproperties(fontproperties))
258 # Update bbox last, as it depends on font properties.
259 bbox = kwargs.pop("bbox", sentinel)
260 ret.extend(super().update(kwargs))
261 if bbox is not sentinel:
262 ret.append(self.set_bbox(bbox))
263 return ret
264
265 def __getstate__(self):
266 d = super().__getstate__()

Callers 15

__init__Method · 0.95
test_update_mutate_inputFunction · 0.95
set_backgroundcolorMethod · 0.45
__copy__Method · 0.45
__init__Method · 0.45
findSystemFontsFunction · 0.45
__copy__Method · 0.45
_json_decodeFunction · 0.45
_findfont_cachedMethod · 0.45
set_tick_paramsMethod · 0.45

Calls 3

set_fontpropertiesMethod · 0.95
set_bboxMethod · 0.95
popMethod · 0.45

Tested by 15

test_update_mutate_inputFunction · 0.76
_save_figureFunction · 0.36
test_rcparams_updateFunction · 0.36
test_deprecationFunction · 0.36
test_grid_rcparamsFunction · 0.36
setMethod · 0.36
setMethod · 0.36
test_savefig_to_stringioFunction · 0.36
test_usetex_preambleFunction · 0.36