diff --git a/mlair/plotting/postprocessing_plotting.py b/mlair/plotting/postprocessing_plotting.py index ce53f4c543b646dbabcbd806761491aec474106c..1e3ce12638b6433fe7283769ac353d2e8579618e 100644 --- a/mlair/plotting/postprocessing_plotting.py +++ b/mlair/plotting/postprocessing_plotting.py @@ -983,7 +983,11 @@ class PlotBootstrapSkillScore(AbstractPlotClass): """ """ - fig, ax = plt.subplots(figsize=(len(self._individual_vars)/2, 10)) + number_of_vars = len(self._individual_vars) + if number_of_vars > 20: + fig, ax = plt.subplots(figsize=(number_of_vars/2, 10)) + else: + fig, ax = plt.subplots() sns.boxplot(x=self._x_name, y="data", hue="ahead", data=self._data, ax=ax, whis=1., palette="Blues_d", showmeans=True, meanprops={"markersize": 1, "markeredgecolor": "k"}, flierprops={"marker": "."}) ax.axhline(y=0, color="grey", linewidth=.5)