8000 rebase and fix deprecation warning in test · matplotlib/matplotlib@b369afe · GitHub
[go: up one dir, main page]

Skip to content

Commit b369afe

Browse files
committed
rebase and fix deprecation warning in test
1 parent 734a454 commit b369afe

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
@@ -980,8 +980,8 @@ def test_YearLocator():
980980
def _create_year_locator(date1, date2, **kwargs):
981981
locator = mdates.YearLocator(**kwargs)
982982
locator.create_dummy_axis()
983-
locator.set_view_interval(mdates.date2num(date1),
984-
mdates.date2num(date2))
983+
locator.axis.set_view_interval(mdates.date2num(date1),
984+
mdates.date2num(date2))
985985
return locator
986986

987987
d1 = datetime.datetime(1990, 1, 1)

0 commit comments

Comments
 (0)
0