Skip to content

Commit d872348

Browse files
committed
warnings
1 parent b7ef642 commit d872348

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

lib/matplotlib/backend_managers.py

+3
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ class ToolManager(object):
5757
"""
5858

5959
def __init__(self, canvas):
60+
warnings.warn('Treat the new Tool classes introduced in v1.5 as ' +
61+
'experimental for now, the API will likely change in ' +
62+
'version 2.1 and perhaps the rcParam as well')
6063
self.canvas = canvas
6164

6265
self._key_press_handler_id = self.canvas.mpl_connect(

lib/matplotlib/backend_tools.py

+3
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ class ToolBase(object):
7272
"""
7373

7474
def __init__(self, toolmanager, name):
75+
warnings.warn('Treat the new Tool classes introduced in v1.5 as ' +
76+
'experimental for now, the API will likely change in ' +
77+
'version 2.1, and some tools might change name')
7578
self._name = name
7679
self._figure = None
7780
self.toolmanager = toolmanager

0 commit comments

Comments
 (0)