Skip to content

Commit 56499b6

Browse files
authored
Typo fix in MilliSecondLocator for #35393 (#58788)
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.
1 parent 593113a commit 56499b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/plotting/_matplotlib/converter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,7 @@ def __call__(self):
430430
freq = f"{interval}ms"
431431
tz = self.tz.tzname(None)
432432
st = dmin.replace(tzinfo=None)
433-
ed = dmin.replace(tzinfo=None)
433+
ed = dmax.replace(tzinfo=None)
434434
all_dates = date_range(start=st, end=ed, freq=freq, tz=tz).astype(object)
435435

436436
try:

0 commit comments

Comments
 (0)