lib/matplotlib/image.py
def write_png(self, fname, noscale=False):
        """Write the image to png file with fname"""
        im = self.make_image()
        if im is None:
            return
        if noscale:
            numrows, numcols = im.get_size()
            im.reset_matrix()
            im.set_interpolation(0)
            im.resize(numcols, numrows)
        im.flipud_out()
        rows, cols, buffer = im.as_rgba_str()
        _png.write_png(buffer, cols, rows, fname)
Write the image to png file with fname
Write the image to png file with fname
Write the image to png file with fname
def write_png(self, fname, noscale=False):
        im = self.make_image()
        if im is None:
            return
        if noscale:
            numrows, numcols = im.get_size()
            im.reset_matrix()
            im.set_interpolation(0)
            im.resize(numcols, numrows)
        im.flipud_out()
        rows, cols, buffer = im.as_rgba_str()
        _png.write_png(buffer, cols, rows, fname)
def write_png ( self , fname , noscale = False ) : im = self . make_image ( ) if im is None : return if noscale : numrows , numcols = im . get_size ( ) im . reset_matrix ( ) im . set_interpolation ( 0 ) im . resize ( numcols , numrows ) im . flipud_out ( ) rows , cols , buffer = im . as_rgba_str ( ) _png . write_png ( buffer , cols , rows , fname )
Write the image to png file with fname
Write the image to png file with fname
"""Write the image to png file with fname"""
self
fname
noscale