|
44 | 44 |
|
45 | 45 | rcParams = matplotlib.rcParams
|
46 | 46 |
|
| 47 | +_alias_map = {'color': ['c'], |
| 48 | + 'linewidth': ['lw'], |
| 49 | + 'linestyle': ['ls'], |
| 50 | + 'facecolor': ['fc'], |
| 51 | + 'edgecolor': ['ec'], |
| 52 | + 'markerfacecolor': ['mfc'], |
| 53 | + 'markeredgecolor': ['mec'], |
| 54 | + 'markeredgewidth': ['mew'], |
| 55 | + 'markersize': ['ms'], |
| 56 | + } |
| 57 | + |
47 | 58 |
|
48 | 59 | def _plot_args_replacer(args, data):
|
49 | 60 | if len(args) == 1:
|
@@ -1415,18 +1426,7 @@ def plot(self, *args, **kwargs):
|
1415 | 1426 | self.cla()
|
1416 | 1427 | lines = []
|
1417 | 1428 |
|
1418 |
| - kwargs = cbook.normalize_kwargs(kwargs, |
1419 |
| - { |
1420 |
| - 'color': ['c'], |
1421 |
| - 'linewidth': ['lw'], |
1422 |
| - 'linestyle': ['ls'], |
1423 |
| - 'facecolor': ['fc'], |
1424 |
| - 'edgecolor': ['ec'], |
1425 |
| - 'markerfacecolor': ['mfc'], |
1426 |
| - 'markeredgecolor': ['mec'], |
1427 |
| - 'markeredgewidth': ['mew'], |
1428 |
| - 'markersize': ['ms'], |
1429 |
| - }) |
| 1429 | + kwargs = cbook.normalize_kwargs(kwargs, _alias_map) |
1430 | 1430 |
|
1431 | 1431 | for line in self._get_lines(*args, **kwargs):
|
1432 | 1432 | self.add_line(line)
|
@@ -4544,18 +4544,7 @@ def fill(self, *args, **kwargs):
|
4544 | 4544 | if not self._hold:
|
4545 | 4545 | self.cla()
|
4546 | 4546 |
|
4547 |
| - kwargs = cbook.normalize_kwargs(kwargs, |
4548 |
| - { |
4549 |
| - 'color': ['c'], |
4550 |
| - 'linewidth': ['lw'], |
4551 |
| - 'linestyle': ['ls'], |
4552 |
| - 'facecolor': ['fc'], |
4553 |
| - 'edgecolor': ['ec'], |
4554 |
| - 'markerfacecolor': ['mfc'], |
4555 |
| - 'markeredgecolor': ['mec'], |
4556 |
| - 'markeredgewidth': ['mew'], |
4557 |
| - 'markersize': ['ms'], |
4558 |
| - }) |
| 4547 | + kwargs = cbook.normalize_kwargs(kwargs, _alias_map) |
4559 | 4548 |
|
4560 | 4549 | patches = []
|
4561 | 4550 | for poly in self._get_patches_for_fill(*args, **kwargs):
|
|
0 commit comments