Skip to content

Commit

Permalink
Typo fix in MilliSecondLocator for #35393 (#58788)
Browse files Browse the repository at this point in the history
Typo fix in MilliSecondLocator for #35393

This locator takes effect when a datetime x-range axis is < 5 seconds
(among a few other conditions), and the typo causes only one xtick
at the very left to be displayed.
  • Loading branch information
azhu-tower committed May 19, 2024
1 parent 593113a commit 56499b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/plotting/_matplotlib/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ def __call__(self):
freq = f"{interval}ms"
tz = self.tz.tzname(None)
st = dmin.replace(tzinfo=None)
ed = dmin.replace(tzinfo=None)
ed = dmax.replace(tzinfo=None)
all_dates = date_range(start=st, end=ed, freq=freq, tz=tz).astype(object)

try:
Expand Down

0 comments on commit 56499b6

Please sign in to comment.