Skip to content

Commit 44a47ff

Browse files
committed
revert changes on dpi settings
1 parent 0f98e5f commit 44a47ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lectures/cagan_ree.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,6 @@ As usual, we'll start by importing some Python modules.
236236
import numpy as np
237237
from collections import namedtuple
238238
import matplotlib.pyplot as plt
239-
plt.rcParams['figure.dpi'] = 200
240239
```
241240
242241
First, we store parameters in a `namedtuple`:
@@ -339,7 +338,7 @@ Now we use the following function to plot the result
339338
340339
```{code-cell} ipython3
341340
def plot_sequences(sequences, labels):
342-
fig, axs = plt.subplots(len(sequences), 1, figsize=(5, 12))
341+
fig, axs = plt.subplots(len(sequences), 1, figsize=(5, 12), dpi=200)
343342
for ax, seq, label in zip(axs, sequences, labels):
344343
ax.plot(range(len(seq)), seq, label=label)
345344
ax.set_ylabel(label)
@@ -529,7 +528,7 @@ p_seq_2_regime2 = np.concatenate((p_seq_2_path1[:T1+1],
529528
T_seq = range(T+2)
530529
531530
# plot both regimes
532-
fig, ax = plt.subplots(5, 1, figsize=(5, 12))
531+
fig, ax = plt.subplots(5, 1, figsize=(5, 12), dpi=200)
533532
534533
# Configuration for each subplot
535534
plot_configs = [
@@ -587,7 +586,7 @@ unanticipated, as in experiment 2.
587586
:tags: [hide-input]
588587
589588
# compare foreseen vs unforeseen shock
590-
fig, ax = plt.subplots(5, figsize=(5, 12))
589+
fig, ax = plt.subplots(5, figsize=(5, 12), dpi=200)
591590
592591
plot_configs = [
593592
{'data': [(T_seq[:-1], μ_seq_2)], 'ylabel': r'$\mu$'},

0 commit comments

Comments
 (0)