Skip to content
Snippets Groups Projects
Commit 7e5b933a authored by Felix Kleinert's avatar Felix Kleinert
Browse files

use lim on upstream plot

parent f77048a5
No related branches found
No related tags found
No related merge requests found
Pipeline #87633 failed
...@@ -639,11 +639,10 @@ class PlotSectorialSkillScore(AbstractPlotClass): # pragma: no cover ...@@ -639,11 +639,10 @@ class PlotSectorialSkillScore(AbstractPlotClass): # pragma: no cover
data = self._data data = self._data
sns.boxplot(x="sector", y="data", hue="ahead", data=data, whis=1, ax=ax, palette="Blues_d", sns.boxplot(x="sector", y="data", hue="ahead", data=data, whis=1, ax=ax, palette="Blues_d",
showmeans=True, meanprops={"markersize": 3, "markeredgecolor": "k"}, flierprops={"marker": "."}, showmeans=True, meanprops={"markersize": 3, "markeredgecolor": "k"}, flierprops={"marker": "."},
ylim=self._lim(data)
) )
ax.axhline(y=0, color="grey", linewidth=.5) ax.axhline(y=0, color="grey", linewidth=.5)
ax.set(ylabel=f"skill score ({self._model_setup} vs. {self._reference_model})", xlabel="sector", ax.set(ylabel=f"skill score ({self._model_setup} vs. {self._reference_model})", xlabel="sector",
title="summary of all stations") title="summary of all stations", ylim=self._lim(data))
handles, _ = ax.get_legend_handles_labels() handles, _ = ax.get_legend_handles_labels()
plt.xticks(rotation=45, horizontalalignment="right") plt.xticks(rotation=45, horizontalalignment="right")
ax.legend(handles, self._labels) ax.legend(handles, self._labels)
...@@ -655,11 +654,10 @@ class PlotSectorialSkillScore(AbstractPlotClass): # pragma: no cover ...@@ -655,11 +654,10 @@ class PlotSectorialSkillScore(AbstractPlotClass): # pragma: no cover
data = self._data data = self._data
sns.boxplot(y="sector", x="data", hue="ahead", data=data, whis=1.5, ax=ax, palette="Blues_d", sns.boxplot(y="sector", x="data", hue="ahead", data=data, whis=1.5, ax=ax, palette="Blues_d",
showmeans=True, meanprops={"markersize": 3, "markeredgecolor": "k"}, flierprops={"marker": "."}, showmeans=True, meanprops={"markersize": 3, "markeredgecolor": "k"}, flierprops={"marker": "."},
xlim=self._lim(data)
) )
ax.axvline(x=0, color="grey", linewidth=.5) ax.axvline(x=0, color="grey", linewidth=.5)
ax.set(xlabel=f"skill score ({self._model_setup} vs. {self._reference_model})", ylabel="sector", ax.set(xlabel=f"skill score ({self._model_setup} vs. {self._reference_model})", ylabel="sector",
title="summary of all stations") title="summary of all stations", xlim=self._lim(data))
handles, _ = ax.get_legend_handles_labels() handles, _ = ax.get_legend_handles_labels()
ax.legend(handles, self._labels) ax.legend(handles, self._labels)
plt.tight_layout() plt.tight_layout()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment