Skip to content

Commit c5cb66e

Browse files
committed
update lw=2 for more vivid lines in figures
1 parent 85eb7de commit c5cb66e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lectures/inflation_history.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ fig, ax = plt.subplots(dpi=200)
9898
9999
for col in cols:
100100
ax.plot(df_fig5_bef1914.index,
101-
df_fig5_bef1914[col], label=col)
101+
df_fig5_bef1914[col], label=col, lw=2)
102102
103103
ax.legend()
104104
ax.set_ylabel('Index 1913 = 100')
@@ -165,7 +165,7 @@ mystnb:
165165
fig, ax = plt.subplots(dpi=200)
166166
167167
for col in cols:
168-
ax.plot(df_fig5.index, df_fig5[col])
168+
ax.plot(df_fig5.index, df_fig5[col], lw=2)
169169
ax.text(x=df_fig5.index[-1]+2,
170170
y=df_fig5[col].iloc[-1], s=col)
171171
@@ -285,12 +285,12 @@ def pe_plot(p_seq, e_seq, index, labs, ax):
285285
p_lab, e_lab = labs
286286
287287
# plot price and exchange rates
288-
ax.plot(index, p_seq, label=p_lab, color='tab:blue')
288+
ax.plot(index, p_seq, label=p_lab, color='tab:blue', lw=2)
289289
290290
# add a new axis
291291
ax1 = ax.twinx()
292-
ax1.plot([None], [None], label=p_lab, color='tab:blue')
293-
ax1.plot(index, e_seq, label=e_lab, color='tab:orange')
292+
ax1.plot([None], [None], label=p_lab, color='tab:blue', lw=2)
293+
ax1.plot(index, e_seq, label=e_lab, color='tab:orange', lw=2)
294294
295295
# set log axes
296296
ax.set_yscale('log')
@@ -325,7 +325,7 @@ def pr_plot(p_seq, index, ax):
325325
326326
# calculate and plot moving average
327327
diff_smooth = pd.DataFrame(log_diff_p).rolling(3, center=True).mean()
328-
ax.plot(index[1:], diff_smooth, label='Moving average (3 period)', alpha=0.5)
328+
ax.plot(index[1:], diff_smooth, label='Moving average (3 period)', alpha=0.5, lw=2)
329329
ax.text(-0.08, 1.03,
330330
'Monthly Inflation Rate',
331331
transform=ax.transAxes)

0 commit comments

Comments
 (0)