Skip to content

Commit

Permalink
split figures for better clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
HumphreyYang committed Dec 12, 2024
1 parent 5de0765 commit ca53bb2
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lectures/match_transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -2361,14 +2361,18 @@ We plot the hystograms and the measure of underqualification for the worker type

```{code-cell} ipython3
# Plot pdf
range_x_axis =(0, 4)
range_x_axis = (0, 4)
model_1980.plot_marginals_pdf(figsize=(8, 5),
bins=300, range_x_axis=range_x_axis)
```

```{code-cell} ipython3
# Plot H_z
model_OD_1980 , _ = model_1980.generate_offD_onD_matching()
model_OD_1980.plot_H_z(figsize=(8, 5), range_x_axis=range_x_axis, scatter=False)
```

```{code-cell} ipython3
# Compute optimal matching and plot off diagonal matching
matching_1980, matching_OD_1980, model_OD_1980 = model_1980.solve_primal_DSS()
model_OD_1980.plot_matching(matching_OD_1980,
Expand Down Expand Up @@ -2451,5 +2455,8 @@ def plot_wage_dispersion_model(wage_worker_x, bins=100,
plot_wages_application(wage_worker_x_1980)
plot_wage_dispersion_model(wage_worker_x_1980, bins=100)
```

```{code-cell} ipython3
plot_wage_dispersion_model(wage_worker_x_1980, bins=100)
```

1 comment on commit ca53bb2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.