@@ -140,16 +140,16 @@ def draw(self):
140140 self ._oldsize = newsize
141141 self ._source .resize (newsize )
142142 self ._source .draw ()
143- t1 ,t2 ,w ,h = self ._source .figure .bbox .get_bounds ()
143+ t1 ,t2 ,w ,h = self ._source .figure .bbox .bounds
144144 Fltk .fl_draw_image (self ._source .buffer_rgba (0 ,0 ),0 ,0 ,int (w ),int (h ),4 ,0 )
145145 self .redraw ()
146146
147147 def blit (self ,bbox = None ):
148148 if bbox is None :
149- t1 ,t2 ,w ,h = self ._source .figure .bbox .get_bounds ()
149+ t1 ,t2 ,w ,h = self ._source .figure .bbox .bounds
150150 else :
151- t1o ,t2o ,wo ,ho = self ._source .figure .bbox .get_bounds ()
152- t1 ,t2 ,w ,h = bbox .get_bounds ()
151+ t1o ,t2o ,wo ,ho = self ._source .figure .bbox .bounds
152+ t1 ,t2 ,w ,h = bbox .bounds
153153 x ,y = int (t1 ),int (t2 )
154154 Fltk .fl_draw_image (self ._source .buffer_rgba (x ,y ),x ,y ,int (w ),int (h ),4 ,int (wo )* 4 )
155155 #self.redraw()
@@ -222,7 +222,7 @@ def handle(self, event):
222222class FigureCanvasFltkAgg (FigureCanvasAgg ):
223223 def __init__ (self , figure ):
224224 FigureCanvasAgg .__init__ (self ,figure )
225- t1 ,t2 ,w ,h = self .figure .bbox .get_bounds ()
225+ t1 ,t2 ,w ,h = self .figure .bbox .bounds
226226 w , h = int (w ), int (h )
227227 self .canvas = FltkCanvas (0 , 0 , w , h , "canvas" ,self )
228228 #self.draw()
@@ -263,7 +263,7 @@ class FigureManagerFltkAgg(FigureManagerBase):
263263 def __init__ (self , canvas , num , window ):
264264 FigureManagerBase .__init__ (self , canvas , num )
265265 #Fltk container window
266- t1 ,t2 ,w ,h = canvas .figure .bbox .get_bounds ()
266+ t1 ,t2 ,w ,h = canvas .figure .bbox .bounds
267267 w , h = int (w ), int (h )
268268 self .window = window
269269 self .window .size (w ,h + 30 )
@@ -405,7 +405,7 @@ def __init__(self, canvas, figman):
405405 Fltk .Fl_File_Icon .load_system_icons ()
406406 self ._fc = Fltk .Fl_File_Chooser ( "." , "*" , Fltk .Fl_File_Chooser .CREATE , "Save Figure" )
407407 self ._fc .hide ()
408- t1 ,t2 ,w ,h = canvas .figure .bbox .get_bounds ()
408+ t1 ,t2 ,w ,h = canvas .figure .bbox .bounds
409409 w , h = int (w ), int (h )
410410 self ._group = Fltk .Fl_Pack (0 ,h + 2 ,1000 ,26 )
411411 self ._group .type (Fltk .FL_HORIZONTAL )
@@ -591,7 +591,7 @@ def _init_toolbar(self):
591591 Fltk .Fl_File_Icon .load_system_icons ()
592592 self ._fc = Fltk .Fl_File_Chooser ( "." , "*" , Fltk .Fl_File_Chooser .CREATE , "Save Figure" )
593593 self ._fc .hide ()
594- t1 ,t2 ,w ,h = self .canvas .figure .bbox .get_bounds ()
594+ t1 ,t2 ,w ,h = self .canvas .figure .bbox .bounds
595595 w , h = int (w ), int (h )
596596 self ._group = Fltk .Fl_Pack (0 ,h + 2 ,1000 ,26 )
597597 self ._group .type (Fltk .FL_HORIZONTAL )
0 commit comments