Skip to content

Commit

Permalink
Merge pull request #319 from QuantEcon/ht_labels
Browse files Browse the repository at this point in the history
[heavy_tails] update axis labels
  • Loading branch information
jstac authored Nov 17, 2023
2 parents 47c0baf + 085d94c commit f243881
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -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_xlabel("log value")
ax.set_ylabel("log prob")
ax.legend()
fig.subplots_adjust(hspace=0.4)
plt.show()
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f243881

Please sign in to comment.