Skip to content

Commit 9216595

Browse files
authored
Use mpl.__version_info__ in FigureManager (#580)
1 parent fa3d346 commit 9216595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ipympl/backend_nbagg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def _ipython_display_(self, **kwargs):
386386

387387

388388
class FigureManager(FigureManagerWebAgg):
389-
if matplotlib.__version__ < "3.6":
389+
if matplotlib.__version_info__ < (3, 6):
390390
ToolbarCls = Toolbar
391391

392392
def __init__(self, canvas, num):

0 commit comments

Comments
 (0)