Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f3bf578

Browse files
author
Steven Munn
committed
fixed zformats test
1 parent 7f5bcd4 commit f3bf578

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_dates.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -570,13 +570,13 @@ def _create_auto_date_locator(date1, date2):
570570

571571

572572
def test_concise_formatter_zformats():
573-
zero_formats = ['', '%Y', '%b', '%b-%d', '%H:%M', '%H:%M']
573+
zero_formats = ['', "'%y", '%B', '%m-%d', '%S', '.%f']
574574

575575
def _create_auto_date_locator(date1, date2):
576576
fig, ax = plt.subplots()
577577

578578
locator = mdates.AutoDateLocator(interval_multiples=True)
579-
formatter = mdates.ConciseDateFormatter(locator, zero_formats)
579+
formatter = mdates.ConciseDateFormatter(locator, zero_formats=zero_formats)
580580
ax.yaxis.set_major_locator(locator)
581581
ax.yaxis.set_major_formatter(formatter)
582582
ax.set_ylim(date1, date2)

0 commit comments

Comments
 (0)