Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07420cb commit 391086aCopy full SHA for 391086a
1 file changed
lib/matplotlib/backends/backend_gtkagg.py
@@ -81,7 +81,7 @@ def _render_figure(self, pixmap, width, height):
81
buf, gtk.gdk.COLORSPACE_RGB, True, 8, w, h, w*4)
82
#except ValueError:
83
# 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)
+ pixmap.draw_pixbuf(pixmap.new_gc(), pixbuf, 0, 0, 0, 0, w, h, gtk.gdk.RGB_DITHER_NONE, 0, 0)
85
if DEBUG: print 'FigureCanvasGTKAgg.render_figure done'
86
87
def blit(self, bbox=None):
0 commit comments