@@ -599,6 +599,7 @@ def _get_imagesave_wildcards(self):
599599 wildcards = '|' .join (wildcards )
600600 return wildcards , extensions , filter_index
601601
602+ @cbook ._delete_parameter ("3.4" , "origin" )
602603 def gui_repaint (self , drawDC = None , origin = 'WX' ):
603604 """
604605 Performs update of the displayed image on the GUI canvas, using the
@@ -616,7 +617,8 @@ def gui_repaint(self, drawDC=None, origin='WX'):
616617 # For 'WX' backend on Windows, the bitmap can not be in use by another
617618 # DC (see GraphicsContextWx._cache).
618619 bmp = (self .bitmap .ConvertToImage ().ConvertToBitmap ()
619- if wx .Platform == '__WXMSW__' and origin == 'WX'
620+ if wx .Platform == '__WXMSW__'
621+ and isinstance (self .figure ._cachedRenderer , RendererWx )
620622 else self .bitmap )
621623 drawDC .DrawBitmap (bmp , 0 , 0 )
622624 if self ._rubberband_rect is not None :
@@ -1158,6 +1160,7 @@ def _icon(name):
11581160 return wx .Bitmap .FromBufferRGBA (
11591161 image .shape [1 ], image .shape [0 ], image .tobytes ())
11601162
1163+ @cbook .deprecated ("3.4" )
11611164 def get_canvas (self , frame , fig ):
11621165 return type (self .canvas )(frame , - 1 , fig )
11631166
0 commit comments