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

Method _setdefaults

lib/matplotlib/axes/_base.py:341–348  ·  view source on GitHub ↗

Add to the dict *kw* the entries in the dict *default* that are absent or set to None in *kw*.

(defaults, kw)

Source from the content-addressed store, hash-verified

339
340 @staticmethod
341 def _setdefaults(defaults, kw):
342 """
343 Add to the dict *kw* the entries in the dict *default* that are absent
344 or set to None in *kw*.
345 """
346 for k in defaults:
347 if kw.get(k, None) is None:
348 kw[k] = defaults[k]
349
350 def _make_line(self, axes, x, y, kw, kwargs):
351 kw = {**kw, **kwargs} # Don't modify the original kw.

Callers 3

_make_lineMethod · 0.95
_make_coordinatesMethod · 0.95
_make_polygonMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected