@@ -115,6 +115,7 @@ def new_figure_manager(num, *args, **kwargs):
115115 window = Fltk .Fl_Double_Window (10 ,10 ,30 ,30 )
116116 canvas = FigureCanvasFltkAgg (figure )
117117 window .end ()
118+ #Fltk.Fl.visual(Fltk.FL_DOUBLE)
118119 window .show ()
119120 window .make_current ()
120121 figManager = FigureManagerFltkAgg (canvas , num , window )
@@ -157,7 +158,7 @@ def blit(self,bbox=None):
157158 def handle (self , event ):
158159 x = Fltk .Fl .event_x ()
159160 y = Fltk .Fl .event_y ()
160- yf = self ._source .figure .bbox .height () - y
161+ yf = self ._source .figure .bbox .height - y
161162 if event == Fltk .FL_FOCUS or event == Fltk .FL_UNFOCUS :
162163 return 1
163164 elif event == Fltk .FL_KEYDOWN :
@@ -230,7 +231,7 @@ def __init__(self, figure):
230231 def resize (self ,size ):
231232 w , h = size
232233 # compute desired figure size in inches
233- dpival = self .figure .dpi . get ()
234+ dpival = self .figure .dpi
234235 winch = w / dpival
235236 hinch = h / dpival
236237 self .figure .set_size_inches (winch ,hinch )
@@ -405,7 +406,7 @@ class NavigationToolbar:
405406 """
406407
407408 def __init__ (self , canvas , figman ):
408- #xmin, xmax = canvas.figure.bbox.intervalx().get_bounds()
409+ #xmin, xmax = canvas.figure.bbox.intervalx
409410 #height, width = 50, xmax-xmin
410411 self .canvas = canvas
411412 self .figman = figman
0 commit comments