Skip to content

Commit 6ddff42

Browse files
committed
use keyword
1 parent 4b961b2 commit 6ddff42

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/plotting/_matplotlib/core.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ def _make_plot(self):
11801180
kwds = dict(kwds, **errors)
11811181

11821182
label = pprint_thing(label) # .encode('utf-8')
1183-
label = self._mark_right_label(label, i)
1183+
label = self._mark_right_label(label, index=i)
11841184
kwds["label"] = label
11851185

11861186
newlines = plotf(
@@ -1469,7 +1469,7 @@ def _make_plot(self):
14691469
kwds = dict(kwds, **errors)
14701470

14711471
label = pprint_thing(label)
1472-
label = self._mark_right_label(label, i)
1472+
label = self._mark_right_label(label, index=i)
14731473

14741474
if (("yerr" in kwds) or ("xerr" in kwds)) and (kwds.get("ecolor") is None):
14751475
kwds["ecolor"] = mpl.rcParams["xtick.color"]

pandas/plotting/_matplotlib/hist.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def _make_plot(self):
8989
kwds = self.kwds.copy()
9090

9191
label = pprint_thing(label)
92-
label = self._mark_right_label(label, i)
92+
label = self._mark_right_label(label, index=i)
9393
kwds["label"] = label
9494

9595
style, kwds = self._apply_style_colors(colors, kwds, i, label)

0 commit comments

Comments
 (0)