Skip to content

Commit a80b001

Browse files
committed
FigureCanvasBase, NavigationToolbar2 and widget changed to new style classes.
1 parent 4e7a8fc commit a80b001

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ def __init__(self, name, canvas, key, x=0, y=0, guiEvent=None):
13531353

13541354

13551355

1356-
class FigureCanvasBase:
1356+
class FigureCanvasBase(object):
13571357
"""
13581358
The canvas the figure renders into.
13591359
@@ -2306,7 +2306,7 @@ class Cursors: #namespace
23062306

23072307

23082308

2309-
class NavigationToolbar2:
2309+
class NavigationToolbar2(object):
23102310
"""
23112311
Base class for the navigation cursor, version 2
23122312

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def locked(self):
5151

5252

5353

54-
class Widget:
54+
class Widget(object):
5555
"""
5656
OK, I couldn't resist; abstract base class for mpl GUI neutral
5757
widgets

0 commit comments

Comments
 (0)