Skip to content

Commit 961341b

Browse files
author
Sarah Brown
committed
use locally defined _get_xticks instead of matplotlib default ax.get_xticks() fixes pandas-dev#10611
1 parent 21ae073 commit 961341b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ def get_label(i):
390390

391391
if self.orientation == 'vertical' or self.orientation is None:
392392
if self._need_to_set_index:
393-
xticklabels = [get_label(x) for x in ax.get_xticks()]
393+
xticklabels = [get_label(x) for x in self._get_xticks()]
394394
ax.set_xticklabels(xticklabels)
395395
self._apply_axis_properties(ax.xaxis, rot=self.rot,
396396
fontsize=self.fontsize)

0 commit comments

Comments
 (0)