diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index 48eb29e1e0f3170c2bcc8f175e29650c5e6f5f09..a93a8629449a35e281f71f72c26c1facdb88582c 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()