Trying to change the size of a plot. But somewhere happens a leak and image instead of being 1000x1000 is 775x770 px. I know that pad tightens the figure. I expect the figure be of 1000x1000 without edges, borders, etc
w = 1000
h = 1000
plt.figure(figsize=(w/1000,h/1000), dpi=100)
sn.heatmap(depthnp, xticklabels=False, yticklabels=False,
center=default, cmap=self.cmap, cbar=False)
plt.savefig('tempFile.png', dpi=1000, bbox_inches='tight',pad_inches = 0)
Is there a way to make it fit the expected size?