I'm having a prolbme with plt library in python. I try to save a 256x256
image to 512x512
size using savefig.
When I save the image the dimensions are 394x394
. Where does it comes from?
img = np.random.random((256,256))
fig = plt.figure(figsize=(8,8))
plt.axis('off')
plt.imshow(img,interpolation='bilinear',cmap = 'gray')
plt.show()
fig.savefig('test.png',bbox_inches='tight',pad_inches = 0,dpi = 64)