Add to the dict *kw* the entries in the dict *default* that are absent or set to None in *kw*.
(defaults, kw)
| 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. |
no test coverage detected