We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ca311b5 commit 81db896Copy full SHA for 81db896
pandas/plotting/_core.py
@@ -562,14 +562,12 @@ def _get_xticks(self, convert_period=False):
562
self.data = self.data.reindex(index=index.sort_values())
563
x = self.data.index.to_timestamp()._mpl_repr()
564
elif (index.is_numeric() or
565
- index.inferred_type in ['string', 'unicode']
566
- ):
+ index.inferred_type in ['string', 'unicode']):
567
"""
568
Matplotlib supports numeric values or datetime objects as
569
xaxis values. Taking LBYL approach here, by the time
570
matplotlib raises exception when using non numeric/datetime
571
values for xaxis, several actions are already taken by plt.
572
-
573
Matplotlib also supports strings as xaxis values.
574
575
x = index._mpl_repr()
0 commit comments