Oct-05-2021, 09:06 PM
(This post was last modified: Oct-05-2021, 09:06 PM by deanhystad.)
I bet it is the dpi setting in plt.figure(). You have to set the dpi before making the heatmap so seaborn can use the higher dpi setting.
Why are you calling plt.figure and plt.subplots? When I run your code it shows two plot windows; an empty 6x6 window and a 15x8 window that contains a plot (mine is a line plot). You can remove either and you will still get a png image file.
From what you've said in earlier posts I don't think the dpi setting in plt.savefig() is doing anything. Seaborne must be drawing a raster image, and changing the dpi is not going to increase the resolution of the png file. Setting the dpi in plt.savefig worked for me because the plot I was saving was vector graphics, and vector graphics rescale very well.
Why are you calling plt.figure and plt.subplots? When I run your code it shows two plot windows; an empty 6x6 window and a 15x8 window that contains a plot (mine is a line plot). You can remove either and you will still get a png image file.
From what you've said in earlier posts I don't think the dpi setting in plt.savefig() is doing anything. Seaborne must be drawing a raster image, and changing the dpi is not going to increase the resolution of the png file. Setting the dpi in plt.savefig worked for me because the plot I was saving was vector graphics, and vector graphics rescale very well.