From 6c5da825bfd4fa8bf1ef1469fde251275067a7e4 Mon Sep 17 00:00:00 2001 From: leufen1 <l.leufen@fz-juelich.de> Date: Wed, 18 May 2022 09:26:08 +0200 Subject: [PATCH] plot looks nice for now, /close #381 --- mlair/plotting/postprocessing_plotting.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index 48eb29e1..a93a8629 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -1302,17 +1302,13 @@ class PlotTimeEvolutionMetric(AbstractPlotClass): return min(max(1.25 * val + 7.5, 10), 30) def _plot(self, data, years, months, vmin=None, vmax=None, subtitle=None): - fig, ax = plt.subplots(figsize=(max(data.shape[1] / 5.5, 12), max(data.shape[0] / 3, 2))) + fig, ax = plt.subplots(figsize=(max(data.shape[1] / 5.5, 12), max(data.shape[0] / 3.5, 2))) data.sort_index(inplace=True) sns.heatmap(data, linewidths=1, cmap="coolwarm", ax=ax, vmin=vmin, vmax=vmax, cbar_kws={"aspect": self._aspect_cbar(data.shape[0])}) # or cmap="Spectral_r", cmap="RdYlBu_r", cmap="coolwarm", # square=True - # , cbar_kws={"aspect": 10} self._set_ticks(ax, years, months) - # ax.set_xlabel(None) - # ax.set_ylabel(None) - # plt.title(self.title if subtitle is None else f"{subtitle}\n{self.title}") ax.set(xlabel=None, ylabel=None, title=self.title if subtitle is None else f"{subtitle}\n{self.title}") plt.tight_layout() self._save() -- GitLab