images in SVG

One problem with the colorbar is that the png file "im.write_png
(filename)" creates is upside down, image_demo.py creates an upside down
png too.

I see that the GTK/GDK backend does not use im.write_png() but uses
im.as_str() which has a 'flipud' argument to flip the image.
Is it possible for im.write_png() to take the 'flipud' argument and flip
the image for the SVG backend?

The name im.as_str() is a bit vague - what kind of string? Something
like im.as_rgba_str() would make it a bit clearer.

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com

···

On Mon, 2005-08-01 at 20:26 -0700, matplotlib-devel-request@lists.sourceforge.net wrote:

        
        In some cases, there appears to be a bug in SVG image
        handling. For
        example, the image in the colorbar is not properly sized
        
            import pylab as p
            p.imshow(p.rand(5,3))
            p.colorbar()
            p.savefig('test.svg')g
            p.show()
        
        This problem appeared before and after Steve's application of
        Norbert's PNG patch (thanks's Norbert!) so it looks like
        something
        else is to blame.