File tree 3 files changed +8
-4
lines changed
doc/api/next_api_changes/deprecations 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change
1
+ ``FigureManagerGTK3Agg `` and ``FigureManagerGTK4Agg ``
2
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3
+ ... are deprecated; directly use ``FigureManagerGTK3 `` and
4
+ ``FigureManagerGTK4 `` instead.
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
3
- from .. import cbook
3
+ from .. import _api , cbook
4
4
try :
5
5
from . import backend_cairo
6
6
except ImportError as e :
@@ -76,11 +76,11 @@ def draw(self):
76
76
backend_gtk3 .FigureCanvasGTK3 .draw (self )
77
77
78
78
79
+ @_api .deprecated ("3.6" , alternative = "backend_gtk3.FigureManagerGTK3" )
79
80
class FigureManagerGTK3Agg (backend_gtk3 .FigureManagerGTK3 ):
80
81
pass
81
82
82
83
83
84
@_BackendGTK3 .export
84
85
class _BackendGTK3Cairo (_BackendGTK3 ):
85
86
FigureCanvas = FigureCanvasGTK3Agg
86
- FigureManager = FigureManagerGTK3Agg
Original file line number Diff line number Diff line change 1
1
import numpy as np
2
2
3
- from .. import cbook
3
+ from .. import _api , cbook
4
4
try :
5
5
from . import backend_cairo
6
6
except ImportError as e :
@@ -44,11 +44,11 @@ def draw(self):
44
44
backend_gtk4 .FigureCanvasGTK4 .draw (self )
45
45
46
46
47
+ @_api .deprecated ("3.6" , alternative = "backend_gtk4.FigureManagerGTK4" )
47
48
class FigureManagerGTK4Agg (backend_gtk4 .FigureManagerGTK4 ):
48
49
pass
49
50
50
51
51
52
@_BackendGTK4 .export
52
53
class _BackendGTK4Agg (_BackendGTK4 ):
53
54
FigureCanvas = FigureCanvasGTK4Agg
54
- FigureManager = FigureManagerGTK4Agg
You can’t perform that action at this time.
0 commit comments