@@ -754,7 +754,7 @@ def _render_to_pixmap(self, width, height):
754
754
- rendering the pixmap to save to a file (matlab.savefig)
755
755
Should not be overridden
756
756
"""
757
- if DEBUG : print 'backend_gtk .%s' % fn_name ()
757
+ if DEBUG : print 'FigureCanvasGTK .%s' % fn_name ()
758
758
create_pixmap = False
759
759
if width > self ._pixmap_width :
760
760
# increase the pixmap in 10%+ (rather than 1 pixel) steps
@@ -766,7 +766,7 @@ def _render_to_pixmap(self, width, height):
766
766
create_pixmap = True
767
767
768
768
if create_pixmap :
769
- if DEBUG : print 'backend_gtk .%s: new pixmap' % fn_name ()
769
+ if DEBUG : print 'FigureCanvasGTK .%s new pixmap' % fn_name ()
770
770
self ._pixmap = gtk .gdk .Pixmap (self .window , self ._pixmap_width ,
771
771
self ._pixmap_height )
772
772
self ._renderer ._set_pixmap (self ._pixmap )
@@ -779,7 +779,7 @@ def expose_event(self, widget, event):
779
779
"""Expose_event for all GTK backends
780
780
Should not be overridden.
781
781
"""
782
- if DEBUG : print 'backend_gtk .%s' % fn_name ()
782
+ if DEBUG : print 'FigureCanvasGTK .%s' % fn_name ()
783
783
if self ._draw_pixmap and GTK_WIDGET_DRAWABLE (self ):
784
784
width , height = self .allocation .width , self .allocation .height
785
785
self ._render_to_pixmap (width , height )
@@ -893,6 +893,7 @@ class FigureManagerGTK(FigureManagerBase):
893
893
894
894
"""
895
895
def __init__ (self , canvas , num ):
896
+ if DEBUG : print 'FigureManagerGTK.%s' % fn_name ()
896
897
FigureManagerBase .__init__ (self , canvas , num )
897
898
898
899
self .window = gtk .Window ()
@@ -926,16 +927,19 @@ def destroy(*args): Gcf.destroy(num)
926
927
927
928
928
929
def add_subplot (self , * args , ** kwargs ):
930
+ if DEBUG : print 'FigureManagerGTK.%s' % fn_name ()
929
931
a = FigureManagerBase .add_subplot (self , * args , ** kwargs )
930
932
if self .toolbar is not None : self .toolbar .update ()
931
933
return a
932
934
933
935
def add_axes (self , rect , ** kwargs ):
936
+ if DEBUG : print 'FigureManagerGTK.%s' % fn_name ()
934
937
a = FigureManagerBase .add_axes (self , rect , ** kwargs )
935
938
if self .toolbar is not None : self .toolbar .update ()
936
939
return a
937
940
938
941
def destroy (self , * args ):
942
+ if DEBUG : print 'FigureManagerGTK.%s' % fn_name ()
939
943
self .window .destroy ()
940
944
if Gcf .get_num_fig_managers ()== 0 and not matplotlib .is_interactive ():
941
945
gtk .main_quit ()
0 commit comments