Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 391086a

Browse files
committed
gtkagg pixbuf change
svn path=/trunk/matplotlib/; revision=1864
1 parent 07420cb commit 391086a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_gtkagg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def _render_figure(self, pixmap, width, height):
8181
buf, gtk.gdk.COLORSPACE_RGB, True, 8, w, h, w*4)
8282
#except ValueError:
8383
# return # todo fixme, how can this fail
84-
pixbuf.render_to_drawable(pixmap, pixmap.new_gc(), 0, 0, 0, 0, w, h, gtk.gdk.RGB_DITHER_NONE, 0, 0)
84+
pixmap.draw_pixbuf(pixmap.new_gc(), pixbuf, 0, 0, 0, 0, w, h, gtk.gdk.RGB_DITHER_NONE, 0, 0)
8585
if DEBUG: print 'FigureCanvasGTKAgg.render_figure done'
8686

8787
def blit(self, bbox=None):

0 commit comments

Comments
 (0)