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

lectures/exchangeable.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,14 @@ Let’s start with some imports:
6666
---
6767
tags: [hide-output]
6868
---
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, vectorize
7073
from math import gamma
7174
import scipy.optimize as op
7275
from scipy.integrate import quad
7376
import numpy as np
74-
import matplotlib.pyplot as plt
75-
%matplotlib inline
7677
```
7778

7879
## Independently and Identically Distributed

lectures/finite_markov.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ Prerequisite knowledge is basic probability and linear algebra.
5252
Let's start with some standard imports:
5353

5454
```{code-cell} ipython
55+
%matplotlib inline
56+
import matplotlib.pyplot as plt
57+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5558
import quantecon as qe
5659
import numpy as np
5760
from mpl_toolkits.mplot3d import Axes3D
58-
import matplotlib.pyplot as plt
59-
%matplotlib inline
6061
```
6162

6263
## Definitions

lectures/heavy_tails.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,11 @@ key ideas.
8181
Let's start with some imports:
8282

8383
```{code-cell} ipython
84+
%matplotlib inline
85+
import matplotlib.pyplot as plt
86+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
8487
import numpy as np
8588
import quantecon as qe
86-
import matplotlib.pyplot as plt
87-
%matplotlib inline
8889
```
8990

9091
The following two lines can be added to avoid an annoying FutureWarning, and prevent a specific compatibility issue between pandas and matplotlib from causing problems down the line:

lectures/ifp.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,14 @@ Time iteration is globally convergent under mild assumptions, even when utility
5959
We'll need the following imports:
6060

6161
```{code-cell} ipython
62+
%matplotlib inline
63+
import matplotlib.pyplot as plt
64+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
6265
import numpy as np
6366
from quantecon.optimize import brent_max, brentq
6467
from interpolation import interp
6568
from numba import njit, float64
6669
from numba.experimental import jitclass
67-
import matplotlib.pyplot as plt
68-
%matplotlib inline
6970
from quantecon import MarkovChain
7071
```
7172

lectures/ifp_advanced.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ endogenous grid method to solve the model quickly and accurately.
5656
We require the following imports:
5757

5858
```{code-cell} ipython
59+
%matplotlib inline
60+
import matplotlib.pyplot as plt
61+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
5962
import numpy as np
6063
from quantecon.optimize import brent_max, brentq
6164
from interpolation import interp
6265
from numba import njit, float64
6366
from numba.experimental import jitclass
64-
import matplotlib.pyplot as plt
65-
%matplotlib inline
6667
from quantecon import MarkovChain
6768
```
6869

lectures/inventory_dynamics.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ While our Markov environment and many of the concepts we consider are related to
4747
Let's start with some imports
4848

4949
```{code-cell} ipython3
50-
import numpy as np
51-
import matplotlib.pyplot as plt
5250
%matplotlib inline
53-
51+
import matplotlib.pyplot as plt
52+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
53+
import numpy as np
5454
from numba import njit, float64, prange
5555
from numba.experimental import jitclass
5656
```

lectures/jv.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,13 @@ In this section, we solve a simple on-the-job search model
4646
Let's start with some imports:
4747

4848
```{code-cell} ipython
49+
%matplotlib inline
50+
import matplotlib.pyplot as plt
51+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
4952
import numpy as np
5053
import scipy.stats as stats
5154
from interpolation import interp
5255
from numba import njit, prange
53-
import matplotlib.pyplot as plt
54-
%matplotlib inline
5556
from math import gamma
5657
```
5758

lectures/kalman.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,12 @@ Required knowledge: Familiarity with matrix manipulations, multivariate normal d
5555
We'll need the following 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
from scipy import linalg
5962
import numpy as np
6063
import matplotlib.cm as cm
61-
import matplotlib.pyplot as plt
62-
%matplotlib inline
6364
from quantecon import Kalman, LinearStateSpace
6465
from scipy.stats import norm
6566
from scipy.integrate import quad

lectures/kesten_processes.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ We will discuss these issues as we go along.
5454
Let's start with some imports:
5555

5656
```{code-cell} ipython
57-
import numpy as np
58-
import matplotlib.pyplot as plt
5957
%matplotlib inline
60-
58+
import matplotlib.pyplot as plt
59+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
60+
import numpy as np
6161
import quantecon as qe
6262
```
6363

lectures/lake_model.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ These concepts will help us build an equilibrium model of ex-ante homogeneous wo
6868
Let's start with some imports:
6969

7070
```{code-cell} ipython
71+
%matplotlib inline
72+
import matplotlib.pyplot as plt
73+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
7174
import numpy as np
7275
from quantecon import MarkovChain
73-
import matplotlib.pyplot as plt
74-
%matplotlib inline
7576
from scipy.stats import norm
7677
from scipy.optimize import brentq
7778
from quantecon.distributions import BetaBinomial

lectures/likelihood_bayes.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ kernelspec:
2525
```
2626

2727
```{code-cell} ipython
28-
import numpy as np
28+
%matplotlib inline
2929
import matplotlib.pyplot as plt
30+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
31+
import numpy as np
3032
from numba import vectorize, njit
3133
from math import gamma
32-
%matplotlib inline
3334
```
3435

3536
## Overview

lectures/likelihood_ratio_process.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@ kernelspec:
2525
```
2626

2727
```{code-cell} ipython
28-
import numpy as np
28+
%matplotlib inline
2929
import matplotlib.pyplot as plt
30+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
31+
import numpy as np
3032
from numba import vectorize, njit
3133
from math import gamma
32-
%matplotlib inline
3334
from scipy.integrate import quad
3435
```
3536

lectures/linear_algebra.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,10 @@ material that will be used in applications as we go along.
7373
Let's start with some imports:
7474

7575
```{code-cell} ipython
76-
import numpy as np
77-
import matplotlib.pyplot as plt
7876
%matplotlib inline
77+
import matplotlib.pyplot as plt
78+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
79+
import numpy as np
7980
from matplotlib import cm
8081
from mpl_toolkits.mplot3d import Axes3D
8182
from scipy.interpolate import interp2d

lectures/linear_models.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ Its many applications include:
6666
Let's start with some imports:
6767

6868
```{code-cell} ipython
69-
import numpy as np
70-
import matplotlib.pyplot as plt
7169
%matplotlib inline
70+
import matplotlib.pyplot as plt
71+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
72+
import numpy as np
7273
from quantecon import LinearStateSpace
7374
from scipy.stats import norm
7475
import random

lectures/lln_clt.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ Some of these extensions are presented as exercises.
5151
We'll need the following 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 random
5558
import numpy as np
56-
import matplotlib.pyplot as plt
57-
%matplotlib inline
5859
from scipy.stats import t, beta, lognorm, expon, gamma, uniform, cauchy
5960
from scipy.stats import gaussian_kde, poisson, binom, norm, chi2
6061
from mpl_toolkits.mplot3d import Axes3D

lectures/lq_inventories.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,11 @@ Here is code for computing an optimal decision rule and for analyzing
203203
its consequences.
204204

205205
```{code-cell} ipython
206+
%matplotlib inline
207+
import matplotlib.pyplot as plt
208+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
206209
import numpy as np
207210
import quantecon as qe
208-
import matplotlib.pyplot as plt
209-
%matplotlib inline
210211
```
211212

212213
```{code-cell} python3

lectures/lqcontrol.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,10 @@ In order to focus on computation, we leave longer proofs to these sources (while
7070
Let's start with some imports:
7171

7272
```{code-cell} ipython
73-
import numpy as np
74-
import matplotlib.pyplot as plt
7573
%matplotlib inline
74+
import matplotlib.pyplot as plt
75+
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
76+
import numpy as np
7677
from quantecon import LQ
7778
```
7879

0 commit comments

Comments
 (0)