Skip to content

Commit fb6a048

Browse files
committed
Use _log.warning instead of deprecated _log.warn.
1 parent 7cfdec7 commit fb6a048

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/dates.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,10 +1348,9 @@ def get_locator(self, dmin, dmax):
13481348
else:
13491349
locator = MicrosecondLocator(interval, tz=self.tz)
13501350
if dmin.year > 20 and interval < 1000:
1351-
_log.warn('Plotting microsecond time intervals is not'
1352-
' well supported. Please see the'
1353-
' MicrosecondLocator documentation'
1354-
' for details.')
1351+
_log.warning('Plotting microsecond time intervals is not well '
1352+
'supported. Please see the MicrosecondLocator '
1353+
'documentation for details.')
13551354

13561355
locator.set_axis(self.axis)
13571356

0 commit comments

Comments
 (0)