matplotlib 0.85 problems

Hi: I just updated to 0.85 which appeared on sf today. I'm

    > getting this error using the gtk-agg backend on macos x:

    > Traceback (most recent call last): File
    > "/sw/lib/python2.4/site-packages/matplotlib/backends/",
    > line 303, in expose_event self._render_figure(self._pixmap,
    > w, h) File
    > "/sw/lib/python2.4/site-packages/matplotlib/backends/",
    > line 80, in _render_figure pixbuf =
    > gtk.gdk.pixbuf_new_from_data( AttributeError: 'module'
    > object has no attribute 'pixbuf_new_from_data'

    > 0.84 worked fine. Do I need a newer version of pygtk?

This was the start of an attempt to get rid of the gtkagg extension
code and replace it with pure pygtk calls. There is an equivalent
method for older version of pygtk. For now, in in
the _render_figure method, just uncomment

        #agg_to_gtk_drawable(pixmap, self.renderer._renderer, None)

and comment out

        buf = self.buffer_rgba(0,0)
        ren = self.get_renderer()
        w = int(ren.width)
        h = int(ren.height)
        pixbuf = gtk.gdk.pixbuf_new_from_data(
            buf, gtk.gdk.COLORSPACE_RGB, True, 8, w, h, w*4)
        pixmap.draw_pixbuf(pixmap.new_gc(), pixbuf, 0, 0, 0, 0, w, h, gtk.gdk.RGB_DITHER_NONE, 0, 0)

Or upgrade your pygtk (2.4 or later, me thinks)