Hello,
I’ve noticed a bug with matplotlib.pyplot.``imsave. Say I have an array that is 1000*1000. This works perfectly:
pylab.imsave(outfile,data,format='png',origin='lower')
`
`
and I get image1.png.
`
`
However, if the array is not a square, say 1000*1500, then the output image is rotated 90 degrees compared to the image it prints out. Example, image2.png.
`
`
I tried numpy.rot90(frame) to rotate my data, and though my data did rotate, so did the output frame. Example, image3.png.
`
`
If there is a way around this, please let me know. Otherwise, it should be fixed ;)
`
`
Cheers,
Rachel
test_imsave.py (512 Bytes)