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)