Issue
The following code save two images that look exaclty the same, but they should not! (images[0] is definitively different than images[1])
import matplotlib.pyplot as plt
plt.imshow(images[0])
plt.savefig("image0.png")
#plt.clf()
plt.imshow(images[1])
plt.savefig("image1.png")
I tried to use plt.clf but this just make the second image blank
Any idea ?
Solution
it was another call to plt above and hidden in the code (in a called module), I just put plt.close() there
Answered By - ailauli69
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.