8000 Merge pull request #12749 from anntzer/toolmanager-warning · matplotlib/matplotlib@2e65e40 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2e65e40

Browse files
authored
Merge pull request #12749 from anntzer/toolmanager-warning
Move toolmanager warning from logging to warning.
2 parents 2f0e119 + 1b5fa40 commit 2e65e40

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/matplotlib/backend_tools.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ class ToolBase(object):
7777
"""
7878

7979
def __init__(self, toolmanager, name):
80-
_log.warning('Treat the new Tool classes introduced in v1.5 as '
81-
'experimental for now, the API will likely change in '
82-
'version 2.1, and some tools might change name')
80+
cbook._warn_external(
81+
'The new Tool classes introduced in v1.5 are experimental; their '
82+
'API (including names) will likely change in future versions.')
8383
self._name = name
8484
self._toolmanager = toolmanager
8585
self._figure = None

0 commit comments

Comments
 (0)
0