@@ -115,6 +115,7 @@ def new_figure_manager(num, *args, **kwargs):
115
115
window = Fltk .Fl_Double_Window (10 ,10 ,30 ,30 )
116
116
canvas = FigureCanvasFltkAgg (figure )
117
117
window .end ()
118
+ #Fltk.Fl.visual(Fltk.FL_DOUBLE)
118
119
window .show ()
119
120
window .make_current ()
120
121
figManager = FigureManagerFltkAgg (canvas , num , window )
@@ -157,7 +158,7 @@ def blit(self,bbox=None):
157
158
def handle (self , event ):
158
159
x = Fltk .Fl .event_x ()
159
160
y = Fltk .Fl .event_y ()
160
- yf = self ._source .figure .bbox .height () - y
161
+ yf = self ._source .figure .bbox .height - y
161
162
if event == Fltk .FL_FOCUS or event == Fltk .FL_UNFOCUS :
162
163
return 1
163
164
elif event == Fltk .FL_KEYDOWN :
@@ -230,7 +231,7 @@ def __init__(self, figure):
230
231
def resize (self ,size ):
231
232
w , h = size
232
233
# compute desired figure size in inches
233
- dpival = self .figure .dpi . get ()
234
+ dpival = self .figure .dpi
234
235
winch = w / dpival
235
236
hinch = h / dpival
236
237
self .figure .set_size_inches (winch ,hinch )
@@ -405,7 +406,7 @@ class NavigationToolbar:
405
406
"""
406
407
407
408
def __init__ (self , canvas , figman ):
408
- #xmin, xmax = canvas.figure.bbox.intervalx().get_bounds()
409
+ #xmin, xmax = canvas.figure.bbox.intervalx
409
410
#height, width = 50, xmax-xmin
410
411
self .canvas = canvas
411
412
self .figman = figman
0 commit comments