Gtk.Layout instead of Gtk.DrawingArea

There are two conspicuous bugs in the Cairo output:

1) contour_demo.py: the image part of the figure is wrong in shape and content. It looks like an array dimensions confusion or something like that. Strangely, the very similar image in image_demo.py is fine.

I fixed this bug. There is still a bug illustrated by examples/figimage_demo.py, however, that I did not mention before. I don't plan to look for it, so I hope someone else does.

Eric

Carl,
I've not been following the matplotlib mailing lists recently, but I
came across your blog and had a look at the cairo patches. It looks like
all the cairo patches are against some old version of matplotlib.

patch #2 enable clipping
I enabled clipping in Jan-2007.

patch #1 for 'snapping'
The patch did not reach the mailing list (?). But in a later mail you
mention that snapping smooth, curved user data is a really bad idea. So
the patch should probably not be applied.

patch #3 snap dash lengths, relies on patch #1.
I think this patch has the problems of patch #1 - if the dashes are
being used to draw axes or gridlines then snapping is OK. But if the
dashes are for user data then snapping is not necessarily what you want.

I think the real problem highlighted by patches #1 and #3 is that
matplotlib (the frontend) does not tell the backends when it is drawing
the plot axes and gridlines to enable the backends to switch on pixel
aligned drawing.

patch #4 for arcs
Looks good, applied it today.

Regards,
Steve.