Skip to content

Commit dd87e38

Browse files
committed
set x and y labels
1 parent 059eaf6 commit dd87e38

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lectures/inequality.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,9 @@ mystnb:
558558
---
559559
fig, ax = plt.subplots()
560560
ax = data_usa.plot(ax=ax)
561-
ax.set_ylim(0,data_usa.max()+5)
561+
ax.set_ylim(0, data_usa.max() + 5)
562+
ax.set_ylabel("Gini coefficient")
563+
ax.set_xlabel("year")
562564
plt.show()
563565
```
564566
@@ -582,7 +584,7 @@ gini_all = gini_all.unstack(level='economy').dropna()
582584
gini_all.plot(kind="hist",
583585
bins=20,
584586
title="Gini coefficient"
585-
)
587+
)
586588
plt.show()
587589
```
588590

0 commit comments

Comments
 (0)