Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77be376

Browse files
committed
FIX: add proper replace_names for some plotting methods
1 parent 0f781a1 commit 77be376

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,10 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
10981098

10991099
return coll
11001100

1101-
@unpack_labeled_data(replace_all_args=False, label_namer=None)
1101+
@unpack_labeled_data(replace_names=["positions", "lineoffsets",
1102+
"linelengths", "linewidths",
1103+
"colors", "linestyles"],
1104+
label_namer=None)
11021105
@docstring.dedent_interpd
11031106
def eventplot(self, positions, orientation='horizontal', lineoffsets=1,
11041107
linelengths=1, linewidths=None, colors=None,
@@ -2433,7 +2436,7 @@ def stem(self, *args, **kwargs):
24332436

24342437
return stem_container
24352438

2436-
@unpack_labeled_data(replace_names=['x', 'labels', 'colors'],
2439+
@unpack_labeled_data(replace_names=['x', 'explode', 'labels', 'colors'],
24372440
label_namer=None)
24382441
def pie(self, x, explode=None, labels=None, colors=None,
24392442
autopct=None, pctdistance=0.6, shadow=False, labeldistance=1.1,

0 commit comments

Comments
 (0)