MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / write_png

Method write_png

lib/matplotlib/image.py:658–662  ·  view source on GitHub ↗

Write the image to png file *fname*.

(self, fname)

Source from the content-addressed store, hash-verified

656 return inside, {}
657
658 def write_png(self, fname):
659 """Write the image to png file *fname*."""
660 im = self.to_rgba(self._A[::-1] if self.origin == 'lower' else self._A,
661 bytes=True, norm=True)
662 PIL.Image.fromarray(im).save(fname, format="png")
663
664 @staticmethod
665 def _normalize_image_array(A):

Callers

nothing calls this directly

Calls 2

saveMethod · 0.80
to_rgbaMethod · 0.45

Tested by

no test coverage detected