From 961341b5e56a1fa548095d4543a215ee2786f6f4 Mon Sep 17 00:00:00 2001 From: Sarah Brown Date: Tue, 13 Mar 2018 16:21:34 -0700 Subject: [PATCH] use locally defined _get_xticks instead of matplotlib default ax.get_xticks() fixes #10611 --- pandas/plotting/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index c5b22effc6486..4e2df5ce11632 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -390,7 +390,7 @@ def get_label(i): if self.orientation == 'vertical' or self.orientation is None: if self._need_to_set_index: - xticklabels = [get_label(x) for x in ax.get_xticks()] + xticklabels = [get_label(x) for x in self._get_xticks()] ax.set_xticklabels(xticklabels) self._apply_axis_properties(ax.xaxis, rot=self.rot, fontsize=self.fontsize)