From a7cf71d0da8df772157aa8be3adc248485d513a4 Mon Sep 17 00:00:00 2001 From: shlff Date: Thu, 16 Nov 2023 20:37:24 +1100 Subject: [PATCH 1/2] [heavy_tails] update axis labels --- lectures/heavy_tails.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lectures/heavy_tails.md b/lectures/heavy_tails.md index 9c1962d5..4fb8c07c 100644 --- a/lectures/heavy_tails.md +++ b/lectures/heavy_tails.md @@ -516,11 +516,12 @@ for data, label, ax in zip(data_list, labels, axes): ax.loglog(x_grid, [eccdf(x, data) for x in x_grid], 'o', markersize=3.0, alpha=0.5, label=label) - ax.set_xlabel("log rank") - ax.set_ylabel("log size") - + ax.set_ylabel("log prob") + ax.legend() - + +ax.set_xlabel("log value") + fig.subplots_adjust(hspace=0.4) plt.show() @@ -630,7 +631,7 @@ def empirical_ccdf(data, if not xlabel: xlabel='log value' ax.set_xlabel(xlabel, fontsize=12) - ax.set_ylabel("log prob.", fontsize=12) + ax.set_ylabel("log prob", fontsize=12) if label: ax.legend(loc='lower left', fontsize=12) @@ -825,8 +826,8 @@ for n in range(1, N): # Plot ax.plot(range(N), sample_mean, alpha=0.6, label='$\\bar{X}_n$') - ax.plot(range(N), np.zeros(N), 'k--', lw=0.5) +ax.set_xlabel(r"$n$") ax.legend() plt.show() From 085d94c3c6f304a33dd0d8169411d81ccb1da914 Mon Sep 17 00:00:00 2001 From: Shu Date: Fri, 17 Nov 2023 19:21:28 +1100 Subject: [PATCH 2/2] fix_indentation --- lectures/heavy_tails.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lectures/heavy_tails.md b/lectures/heavy_tails.md index 4fb8c07c..2faf77d6 100644 --- a/lectures/heavy_tails.md +++ b/lectures/heavy_tails.md @@ -516,11 +516,11 @@ for data, label, ax in zip(data_list, labels, axes): ax.loglog(x_grid, [eccdf(x, data) for x in x_grid], 'o', markersize=3.0, alpha=0.5, label=label) + ax.set_xlabel("log value") ax.set_ylabel("log prob") ax.legend() -ax.set_xlabel("log value") fig.subplots_adjust(hspace=0.4)