obspy.core.util.testing.write_png

write_png(arr, filename)[source]

Custom write_png() function. matplotlib < 1.3 cannot write RGBA png files.

Modified from https://stackoverflow.com/a/19174800