diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index c4f18bfd1324a5775dfb94f3abfb330dfe621457..68cab25b89fdb2fc4717633a071c5c11e9bdafc6 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -752,11 +752,15 @@ class PlotCompetitiveSkillScore(AbstractPlotClass): ax.set(ylabel="skill score", xlabel="competing models", title="summary of all stations", ylim=self._lim()) x_min, x_max = ax.get_xlim() + print("-----------------") + print(ax.get_xlim()) ax.set_xlim([max(x_min, -xlim), min(x_max, xlim)]) handles, _ = ax.get_legend_handles_labels() plt.xticks(rotation=90) + print(ax.get_xlim()) ax.legend(handles, self._labels) plt.tight_layout() + print(ax.get_xlim()) def _plot_vertical(self, single_model_comparison=False, ylim=5): """Plot skill scores of the comparisons, but vertically aligned."""