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

Method _norm_per_subplot_kw

lib/matplotlib/figure.py:1882–1894  ·  view source on GitHub ↗
(per_subplot_kw)

Source from the content-addressed store, hash-verified

1880
1881 @staticmethod
1882 def _norm_per_subplot_kw(per_subplot_kw):
1883 expanded = {}
1884 for k, v in per_subplot_kw.items():
1885 if isinstance(k, tuple):
1886 for sub_key in k:
1887 if sub_key in expanded:
1888 raise ValueError(f'The key {sub_key!r} appears multiple times.')
1889 expanded[sub_key] = v
1890 else:
1891 if k in expanded:
1892 raise ValueError(f'The key {k!r} appears multiple times.')
1893 expanded[k] = v
1894 return expanded
1895
1896 @staticmethod
1897 def _normalize_grid_string(layout):

Callers 1

subplot_mosaicMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected