From b6d19b006ab2406b8f3c447a8f6286ba43a96d0d Mon Sep 17 00:00:00 2001 From: Ki-Ho Lee Date: Mon, 27 Jul 2026 21:14:45 +0900 Subject: [PATCH] Fix overlapping x-axis tick labels in the subspace figure --- code/replot_all.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/code/replot_all.py b/code/replot_all.py index 95de0ae..cbcdb91 100644 --- a/code/replot_all.py +++ b/code/replot_all.py @@ -138,6 +138,13 @@ for Um, c, mk, ls in ((2, "tab:orange", "s", "-."), marker=mk, label=f"$U{{=}}{Um}$") ax.set_xlabel("paired calibration samples $N$") ax.set_ylabel("subspace recovery error") +# plain tick labels at the measured N values; suppress the crowded +# mantissa minor labels of the default log locator +from matplotlib.ticker import NullLocator +Ns_ticks = [200, 400, 800, 1600, 3200, 6400] +ax.set_xticks(Ns_ticks) +ax.set_xticklabels([str(n) for n in Ns_ticks]) +ax.xaxis.set_minor_locator(NullLocator()) ax.grid(True, which="both", alpha=0.3) ax.legend(loc="upper right", labelspacing=0.3) savefig(fig, "fig_e2_subspace.pdf")