Skip to content

Commit 2388cc1

Browse files
committed
normalize data
1 parent 1635cde commit 2388cc1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ogcore/output_plots.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,9 @@ def ss_profiles(
835835
).sum(axis=1)
836836
plt.plot(age_vec, reform_var, label="Reform", linestyle="--")
837837
if plot_data is not None:
838+
if var != "n":
839+
# If not labor, normalize so data and model match in first period
840+
plot_data = plot_data / plot_data.values[0] * base_var[0]
838841
plt.plot(
839842
age_vec, plot_data, linewidth=2.0, label="Data", linestyle=":"
840843
)

0 commit comments

Comments
 (0)