8000 [heavy_tails] update axis labels · QuantEcon/lecture-python-intro@a7cf71d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a7cf71d

Browse files
committed
[heavy_tails] update axis labels
1 parent 8b68b04 commit a7cf71d

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

lectures/heavy_tails.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -516,11 +516,12 @@ for data, label, ax in zip(data_list, labels, axes):
516516
517517
ax.loglog(x_grid, [eccdf(x, data) for x in x_grid],
518518
'o', markersize=3.0, alpha=0.5, label=label)
519-
ax.set_xlabel("log rank")
520-
ax.set_ylabel("log size")
521-
519+
ax.set_ylabel("log prob")
520+
522521
ax.legend()
523-
522+
523+
ax.set_xlabel("log value")
524+
524525
fig.subplots_adjust(hspace=0.4)
525526
526527
plt.show()
@@ -630,7 +631,7 @@ def empirical_ccdf(data,
630631
if not xlabel:
631632
xlabel='log value'
632633
ax.set_xlabel(xlabel, fontsize=12)
633-
ax.set_ylabel("log prob.", fontsize=12)
634+
ax.set_ylabel("log prob", fontsize=12)
634635
635636
if label:
636637
ax.legend(loc='lower left', fontsize=12)
@@ -825,8 +826,8 @@ for n in range(1, N):
825826
826827
# Plot
827828
ax.plot(range(N), sample_mean, alpha=0.6, label='$\\bar{X}_n$')
828-
829829
ax.plot(range(N), np.zeros(N), 'k--', lw=0.5)
830+
ax.set_xlabel(r"$n$")
830831
ax.legend()
831832
832833
plt.show()

0 commit comments

Comments
 (0)
0