Skip to content

Commit 221dbfd

Browse files
authored
adopt standard figsize for quantecon-book-theme (#108)
1 parent 48ad11b commit 221dbfd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+155
-112
lines changed

lectures/aiyagari.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,11 @@ The Aiyagari model has been used to investigate many topics, including
5555
Let's start with some imports:
5656

5757
```{code-cell} ipython
58+
%matplotlib inline
59+
import matplotlib.pyplot as plt
60+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5861
import numpy as np
5962
import quantecon as qe
60-
import matplotlib.pyplot as plt
61-
%matplotlib inline
6263
from quantecon.markov import DiscreteDP
6364
from numba import jit
6465
```

lectures/ar1_processes.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ Let's start with some imports:
4747

4848
```{code-cell} ipython
4949
import numpy as np
50-
import matplotlib.pyplot as plt
5150
%matplotlib inline
51+
import matplotlib.pyplot as plt
52+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5253
```
5354

5455
## The AR(1) Model

lectures/cake_eating_numerical.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ accuracy of alternative numerical methods.
4646
We will use the following imports:
4747

4848
```{code-cell} ipython
49-
import numpy as np
50-
import matplotlib.pyplot as plt
5149
%matplotlib inline
52-
50+
import matplotlib.pyplot as plt
51+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
52+
import numpy as np
5353
from interpolation import interp
5454
from scipy.optimize import minimize_scalar, bisect
5555
```

lectures/cake_eating_problem.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ Readers might find it helpful to review the following lectures before reading th
4040
In what follows, we require the following imports:
4141

4242
```{code-cell} ipython
43-
import numpy as np
44-
import matplotlib.pyplot as plt
4543
%matplotlib inline
44+
import matplotlib.pyplot as plt
45+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
46+
import numpy as np
4647
```
4748

4849
## The Model

lectures/career.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,11 @@ This exposition draws on the presentation in {cite}`Ljungqvist2012`, section 6.5
4747
We begin with some imports:
4848

4949
```{code-cell} ipython
50+
%matplotlib inline
51+
import matplotlib.pyplot as plt
52+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5053
import numpy as np
5154
import quantecon as qe
52-
import matplotlib.pyplot as plt
53-
%matplotlib inline
5455
from numba import njit, prange
5556
from quantecon.distributions import BetaBinomial
5657
from scipy.special import binom, beta

lectures/cass_koopmans_1.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,12 @@ The lecture uses important ideas including
5454
Let's start with some standard imports:
5555

5656
```{code-cell} ipython
57+
%matplotlib inline
58+
import matplotlib.pyplot as plt
59+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5760
from numba import njit, float64
5861
from numba.experimental import jitclass
5962
import numpy as np
60-
import matplotlib.pyplot as plt
61-
%matplotlib inline
6263
```
6364

6465
## The Model

lectures/cass_koopmans_2.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,12 @@ The present lecture uses additional ideas including
6666
Let's start with some standard imports:
6767

6868
```{code-cell} ipython
69+
%matplotlib inline
70+
import matplotlib.pyplot as plt
71+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
6972
from numba import njit, float64
7073
from numba.experimental import jitclass
7174
import numpy as np
72-
import matplotlib.pyplot as plt
73-
%matplotlib inline
7475
```
7576

7677
## Review of Cass-Koopmans Model

lectures/coleman_policy_iter.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ iteration can be further adjusted to obtain even more efficiency.
6161
Let's start with some imports:
6262

6363
```{code-cell} ipython
64+
%matplotlib inline
65+
import matplotlib.pyplot as plt
66+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
6467
import numpy as np
6568
import quantecon as qe
66-
import matplotlib.pyplot as plt
67-
%matplotlib inline
68-
6969
from interpolation import interp
7070
from quantecon.optimize import brentq
7171
from numba import njit, float64

lectures/complex_and_trig.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,10 @@ $$
9898
We'll need the following imports:
9999

100100
```{code-cell} ipython
101-
import numpy as np
102-
import matplotlib.pyplot as plt
103101
%matplotlib inline
102+
import matplotlib.pyplot as plt
103+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
104+
import numpy as np
104105
from sympy import *
105106
```
106107

lectures/egm_policy_iter.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,15 @@ The original reference is {cite}`Carroll2006`.
5151
Let's start with some standard imports:
5252

5353
```{code-cell} ipython
54+
%matplotlib inline
55+
import matplotlib.pyplot as plt
56+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5457
import numpy as np
5558
import quantecon as qe
5659
from interpolation import interp
5760
from numba import njit, float64
5861
from numba.experimental import jitclass
5962
from quantecon.optimize import brentq
60-
import matplotlib.pyplot as plt
61-
%matplotlib inline
6263
```
6364

6465
## Key Idea

0 commit comments

Comments
 (0)