@@ -2142,10 +2142,6 @@ class SubFigure(FigureBase):
21422142
21432143 See :doc:`/gallery/subplots_axes_and_figures/subfigures`
21442144 """
2145- callbacks = _api .deprecated (
2146- "3.6" , alternative = ("the 'resize_event' signal in "
2147- "Figure.canvas.callbacks" )
2148- )(property (lambda self : self ._fig_callbacks ))
21492145
21502146 def __init__ (self , parent , subplotspec , * ,
21512147 facecolor = None ,
@@ -2194,7 +2190,6 @@ def __init__(self, parent, subplotspec, *,
21942190 self ._subplotspec = subplotspec
21952191 self ._parent = parent
21962192 self .figure = parent .figure
2197- self ._fig_callbacks = parent ._fig_callbacks
21982193
21992194 # subfigures use the parent axstack
22002195 self ._axstack = parent ._axstack
@@ -2355,12 +2350,6 @@ class Figure(FigureBase):
23552350 depending on the renderer option_image_nocomposite function. If
23562351 *suppressComposite* is a boolean, this will override the renderer.
23572352 """
2358- # Remove the self._fig_callbacks properties on figure and subfigure
2359- # after the deprecation expires.
2360- callbacks = _api .deprecated (
2361- "3.6" , alternative = ("the 'resize_event' signal in "
2362- "Figure.canvas.callbacks" )
2363- )(property (lambda self : self ._fig_callbacks ))
23642353
23652354 def __str__ (self ):
23662355 return "Figure(%gx%g)" % tuple (self .bbox .size )
@@ -2501,7 +2490,6 @@ def __init__(self,
25012490 # everything is None, so use default:
25022491 self .set_layout_engine (layout = layout )
25032492
2504- self ._fig_callbacks = cbook .CallbackRegistry (signals = ["dpi_changed" ])
25052493 # Callbacks traditionally associated with the canvas (and exposed with
25062494 # a proxy property), but that actually need to be on the figure for
25072495 # pickling.
@@ -2750,7 +2738,6 @@ def _set_dpi(self, dpi, forward=True):
27502738 self .dpi_scale_trans .clear ().scale (dpi )
27512739 w , h = self .get_size_inches ()
27522740 self .set_size_inches (w , h , forward = forward )
2753- self ._fig_callbacks .process ('dpi_changed' , self )
27542741
27552742 dpi = property (_get_dpi , _set_dpi , doc = "The resolution in dots per inch." )
27562743
0 commit comments