Skip to content

Address comments for cagan_ree lecture #387

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Apr 3, 2024
Prev Previous commit
Next Next commit
distinguish the names of the two plotting functions
  • Loading branch information
HumphreyYang committed Mar 25, 2024
commit b5b58bddaae972afcdaac7f30dba8263cc2976c8
7 changes: 3 additions & 4 deletions lectures/cagan_ree.md
Original file line number Diff line number Diff line change
Expand Up @@ -545,8 +545,7 @@ plot_configs = [
'ylabel': r'$p$'}
]

def generate_plots(plot_configs, ax):

def experiment_plot(plot_configs, ax):
# Loop through each subplot configuration
for axi, config in zip(ax, plot_configs):
for data in config['data']:
Expand All @@ -560,7 +559,7 @@ def generate_plots(plot_configs, ax):
plt.tight_layout()
plt.show()

generate_plots(plot_configs, ax)
experiment_plot(plot_configs, ax)
```

We invite you to compare these graphs with corresponding ones for the foreseen stabilization analyzed in experiment 1 above.
Expand Down Expand Up @@ -604,7 +603,7 @@ plot_configs = [
(T_seq, p_seq_1, 'Foreseen')], 'ylabel': r'$p$'}
]

generate_plots(plot_configs, ax)
experiment_plot(plot_configs, ax)
```

It is instructive to compare the preceding graphs with graphs of log price levels and inflation rates for data from four big inflations described in
Expand Down