From a41cbf3a9a3e7effe54f782f91e38b1eafcbbf78 Mon Sep 17 00:00:00 2001 From: Humphrey Yang Date: Wed, 31 Jan 2024 09:42:16 +1100 Subject: [PATCH] minor updates on code --- lectures/long_run_growth.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lectures/long_run_growth.md b/lectures/long_run_growth.md index 16ecd0ad..3700f402 100644 --- a/lectures/long_run_growth.md +++ b/lectures/long_run_growth.md @@ -225,7 +225,7 @@ def draw_interp_plots(series, # pandas series ax # matplolib axis ): - for i, c in enumerate(country): + for c in country: # Get the interpolated data df_interpolated = series[c].interpolate(limit_area='inside') interpolated_data = df_interpolated[series[c].isnull()] @@ -604,7 +604,8 @@ mystnb: --- fig, ax = plt.subplots(dpi=300) ax = regionalgdp_pc.plot(ax=ax, xlabel='year', - ylabel='international dollars') + lw=2, + ylabel='international dollars') ax.set_yscale('log') plt.legend(loc='lower center', ncol=3, bbox_to_anchor=[0.5, -0.5])