SPB Git

spb/wp39_uqo

Public

WP39: figure 6 legend placement

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Simon-Pierre Boucher committed (Nov 2, 2026) parent da12d24 Browse files

12 changed files +2 −1

modified paper/figures/fig01_timeline.pdf +0 −0

Binary file not shown.

modified paper/figures/fig02_coverage.pdf +0 −0

Binary file not shown.

modified paper/figures/fig03_prevalence.pdf +0 −0

Binary file not shown.

modified paper/figures/fig04_frequency_gains.pdf +0 −0

Binary file not shown.

modified paper/figures/fig05_reliability.pdf +0 −0

Binary file not shown.

modified paper/figures/fig06_signal_evolution.pdf +0 −0

Binary file not shown.

modified paper/figures/fig06_signal_evolution.png +0 −0

Binary file not shown.

modified paper/figures/fig07_heterogeneity.pdf +0 −0

Binary file not shown.

modified paper/figures/fig08_rolling.pdf +0 −0

Binary file not shown.

modified paper/figures/fig09_economic.pdf +0 −0

Binary file not shown.

modified paper/main.pdf +0 −0

Binary file not shown.

modified src/wp39/figures.py +2 −1
@@ -187,7 +187,8 @@ def fig_signal_evolution(out: Path, ladder: pd.DataFrame):
187 x = np.array([pos[h] for h in s["h"]]) + off 187 x = np.array([pos[h] for h in s["h"]]) + off
188 _errorbar(ax, x, s["d_logloss"], s["ci_lo"], s["ci_hi"], fmt=mk, color=c, mfc="white", ls="-", lw=0.9, label=lab) 188 _errorbar(ax, x, s["d_logloss"], s["ci_lo"], s["ci_hi"], fmt=mk, color=c, mfc="white", ls="-", lw=0.9, label=lab)
189 ax.axhline(0, color=INK, lw=0.7); ax.set_xlabel("Trading days before the release") 189 ax.axhline(0, color=INK, lw=0.7); ax.set_xlabel("Trading days before the release")
190− ax.set_ylabel("$\\Delta$ log loss, B5 $-$ B2"); _panel(ax, "B", "The 1-minute increment by horizon"); ax.legend(loc="upper right", fontsize=7.5) 190+ ax.set_ylabel("$\\Delta$ log loss, B5 $-$ B2"); _panel(ax, "B", "The 1-minute increment by horizon")
191+ lo, hi = ax.get_ylim(); ax.set_ylim(lo, hi + 0.45 * (hi - lo)); ax.legend(loc="upper left", fontsize=7.5, ncol=2, columnspacing=1.0)
191 ax.yaxis.set_major_formatter(ticker.FormatStrFormatter("%+.3f")) 192 ax.yaxis.set_major_formatter(ticker.FormatStrFormatter("%+.3f"))
192 for a_ in axes: 193 for a_ in axes:
193 a_.set_xticks(range(len(hs))); a_.set_xticklabels([str(h) for h in hs]); a_.set_xlim(-0.5, len(hs) - 0.5) 194 a_.set_xticks(range(len(hs))); a_.set_xticklabels([str(h) for h in hs]); a_.set_xlim(-0.5, len(hs) - 0.5)
194 195
Menu

Theme