MCPcopy
hub / github.com/matplotlib/matplotlib / _internal_update

Method _internal_update

lib/matplotlib/artist.py:1306–1315  ·  view source on GitHub ↗

Update artist properties without prenormalizing them, but generating errors as if calling `set`. The lack of prenormalization is to maintain backcompatibility.

(self, kwargs)

Source from the content-addressed store, hash-verified

1304 props, "{cls.__name__!r} object has no property {prop_name!r}")
1305
1306 def _internal_update(self, kwargs):
1307 """
1308 Update artist properties without prenormalizing them, but generating
1309 errors as if calling `set`.
1310
1311 The lack of prenormalization is to maintain backcompatibility.
1312 """
1313 return self._update_props(
1314 kwargs, "{cls.__name__}.set() got an unexpected keyword argument "
1315 "{prop_name!r}")
1316
1317 def set(self, **kwargs):
1318 # docstring and signature are auto-generated via

Callers 15

setMethod · 0.95
_cm_setMethod · 0.95
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
set_ticklabelsMethod · 0.80
set_text_propsMethod · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80
__init__Method · 0.80

Calls 1

_update_propsMethod · 0.95

Tested by

no test coverage detected