I create a heat map with the seabed
df1.index = pd.to_datetime(df1.index) df1 = df1.set_index('TIMESTAMP') df1 = df1.resample('30min').mean() ax = sns.heatmap(df1.iloc[:, 1:6:], annot=True, linewidths=.5)
But the problem is that there is a lot of data in the dataset, that the heat map will be too small, and the value inside begins fuzzy, as in the attached image.
How can I resize the heatmap to be larger? thanks 
EDIT
I'm trying to:
df1.index = pd.to_datetime(df1.index) fig, ax = plt.subplots(figsize=(10,10)) # Sample figsize in inches sns.heatmap(df1.iloc[:, 1:6:], annot=True, linewidths=.5, ax=ax) df1 = df1.set_index('TIMESTAMP') df1 = df1.resample('1d').mean() ax = sns.heatmap(df1.iloc[:, 1:6:], annot=True, linewidths=.5)
But I get this error:
KeyError Traceback (most recent call last) C:\Users\Demonstrator\Anaconda3\lib\site-packages\pandas\indexes\base.py in get_loc(self, key, method, tolerance) 1944 try: -> 1945 return self._engine.get_loc(key) 1946 except KeyError: pandas\index.pyx in pandas.index.IndexEngine.get_loc (pandas\index.c:4154)() pandas\index.pyx in pandas.index.IndexEngine.get_loc (pandas\index.c:4018)() pandas\hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12368)() pandas\hashtable.pyx in pandas.hashtable.PyObjectHashTable.get_item (pandas\hashtable.c:12322)() KeyError: 'TIMESTAMP' During handling of the above exception, another exception occurred: KeyError Traceback (most recent call last) <ipython-input-779-acaf05718dd8> in <module>() 2 fig, ax = plt.subplots(figsize=(10,10))
EDIT
TypeError Traceback (most recent call last) <ipython-input-890-86bff697504a> in <module>() 2 df2.resample('30min').mean() 3 fig, ax = plt.subplots() ----> 4 ax = sns.heatmap(df2.iloc[:, 1:6:], annot=True, linewidths=.5) 5 ax.set_yticklabels([i.strftime("%Y-%m-%d %H:%M:%S") for i in df2.index], rotation=0) C:\Users\Demonstrator\Anaconda3\lib\site-packages\seaborn\matrix.py in heatmap(data, vmin, vmax, cmap, center, robust, annot, fmt, annot_kws, linewidths, linecolor, cbar, cbar_kws, cbar_ax, square, ax, xticklabels, yticklabels, mask, **kwargs) 483 plotter = _HeatMapper(data, vmin, vmax, cmap, center, robust, annot, fmt, 484 annot_kws, cbar, cbar_kws, xticklabels, --> 485 yticklabels, mask) 486 487