@@ -236,7 +236,6 @@ As usual, we'll start by importing some Python modules.
236
236
import numpy as np
237
237
from collections import namedtuple
238
238
import matplotlib.pyplot as plt
239
- plt.rcParams['figure.dpi'] = 200
240
239
```
241
240
242
241
First, we store parameters in a `namedtuple`:
@@ -339,7 +338,7 @@ Now we use the following function to plot the result
339
338
340
339
```{code-cell} ipython3
341
340
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 )
343
342
for ax, seq, label in zip(axs, sequences, labels):
344
343
ax.plot(range(len(seq)), seq, label=label)
345
344
ax.set_ylabel(label)
@@ -529,7 +528,7 @@ p_seq_2_regime2 = np.concatenate((p_seq_2_path1[:T1+1],
529
528
T_seq = range(T+2)
530
529
531
530
# 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 )
533
532
534
533
# Configuration for each subplot
535
534
plot_configs = [
@@ -587,7 +586,7 @@ unanticipated, as in experiment 2.
587
586
:tags: [hide-input]
588
587
589
588
# 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 )
591
590
592
591
plot_configs = [
593
592
{'data': [(T_seq[:-1], μ_seq_2)], 'ylabel': r'$\mu$'},
0 commit comments