Oct-05-2021, 07:21 PM
(Oct-05-2021, 07:06 PM)deanhystad Wrote: Did you try it? If I capture a 3x3 plot at 100dpy the image is 300x300 pixels. At the 1000dpi the same image is 3000x3000 pixels
With a DPI of 1000, you can see that it doesn't change. I can't see the labels.
from pandas import read_csv import matplotlib.pyplot as plt import seaborn as sns import numpy as np import numpy.ma as ma import pandas as pd dataset = pd.read_csv('Santé3.csv', sep= ';', encoding='latin-1', index_col=0) dataset.drop(['Dynaverage'], axis=1, inplace=True) corr = dataset.corr() plt.figure(figsize=(200,30)) plt.subplots(figsize=(15,8)) sns.heatmap(corr, cmap='coolwarm', vmin=-1, vmax=1, annot=True, mask=mask) plt.savefig("correlation.png", dpi=1000)