Skip to content

[all] Adopt standard figsize for quantecon-book-theme #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions lectures/aiyagari.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,11 @@ The Aiyagari model has been used to investigate many topics, including
Let's start with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
import matplotlib.pyplot as plt
%matplotlib inline
from quantecon.markov import DiscreteDP
from numba import jit
```
Expand Down
3 changes: 2 additions & 1 deletion lectures/ar1_processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ Let's start with some imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
```

## The AR(1) Model
Expand Down
6 changes: 3 additions & 3 deletions lectures/cake_eating_numerical.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ accuracy of alternative numerical methods.
We will use the following imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from interpolation import interp
from scipy.optimize import minimize_scalar, bisect
```
Expand Down
5 changes: 3 additions & 2 deletions lectures/cake_eating_problem.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ Readers might find it helpful to review the following lectures before reading th
In what follows, we require the following imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
```

## The Model
Expand Down
5 changes: 3 additions & 2 deletions lectures/career.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ This exposition draws on the presentation in {cite}`Ljungqvist2012`, section 6.5
We begin with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
import matplotlib.pyplot as plt
%matplotlib inline
from numba import njit, prange
from quantecon.distributions import BetaBinomial
from scipy.special import binom, beta
Expand Down
5 changes: 3 additions & 2 deletions lectures/cass_koopmans_1.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,12 @@ The lecture uses important ideas including
Let's start with some standard imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
from numba import njit, float64
from numba.experimental import jitclass
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
```

## The Model
Expand Down
5 changes: 3 additions & 2 deletions lectures/cass_koopmans_2.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,12 @@ The present lecture uses additional ideas including
Let's start with some standard imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
from numba import njit, float64
from numba.experimental import jitclass
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
```

## Review of Cass-Koopmans Model
Expand Down
6 changes: 3 additions & 3 deletions lectures/coleman_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ iteration can be further adjusted to obtain even more efficiency.
Let's start with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
import matplotlib.pyplot as plt
%matplotlib inline

from interpolation import interp
from quantecon.optimize import brentq
from numba import njit, float64
Expand Down
5 changes: 3 additions & 2 deletions lectures/complex_and_trig.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,10 @@ $$
We'll need the following imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from sympy import *
```

Expand Down
5 changes: 3 additions & 2 deletions lectures/egm_policy_iter.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,15 @@ The original reference is {cite}`Carroll2006`.
Let's start with some standard imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
from interpolation import interp
from numba import njit, float64
from numba.experimental import jitclass
from quantecon.optimize import brentq
import matplotlib.pyplot as plt
%matplotlib inline
```

## Key Idea
Expand Down
5 changes: 3 additions & 2 deletions lectures/exchangeable.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,14 @@ Let’s start with some imports:
---
tags: [hide-output]
---
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
from numba import njit, vectorize
from math import gamma
import scipy.optimize as op
from scipy.integrate import quad
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
```

## Independently and Identically Distributed
Expand Down
5 changes: 3 additions & 2 deletions lectures/finite_markov.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ Prerequisite knowledge is basic probability and linear algebra.
Let's start with some standard imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import quantecon as qe
import numpy as np
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
%matplotlib inline
```

## Definitions
Expand Down
5 changes: 3 additions & 2 deletions lectures/heavy_tails.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ key ideas.
Let's start with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
import matplotlib.pyplot as plt
%matplotlib inline
```

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:
Expand Down
5 changes: 3 additions & 2 deletions lectures/ifp.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ Time iteration is globally convergent under mild assumptions, even when utility
We'll need the following imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from quantecon.optimize import brent_max, brentq
from interpolation import interp
from numba import njit, float64
from numba.experimental import jitclass
import matplotlib.pyplot as plt
%matplotlib inline
from quantecon import MarkovChain
```

Expand Down
5 changes: 3 additions & 2 deletions lectures/ifp_advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,14 @@ endogenous grid method to solve the model quickly and accurately.
We require the following imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from quantecon.optimize import brent_max, brentq
from interpolation import interp
from numba import njit, float64
from numba.experimental import jitclass
import matplotlib.pyplot as plt
%matplotlib inline
from quantecon import MarkovChain
```

Expand Down
6 changes: 3 additions & 3 deletions lectures/inventory_dynamics.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ While our Markov environment and many of the concepts we consider are related to
Let's start with some imports

```{code-cell} ipython3
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from numba import njit, float64, prange
from numba.experimental import jitclass
```
Expand Down
5 changes: 3 additions & 2 deletions lectures/jv.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,13 @@ In this section, we solve a simple on-the-job search model
Let's start with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import scipy.stats as stats
from interpolation import interp
from numba import njit, prange
import matplotlib.pyplot as plt
%matplotlib inline
from math import gamma
```

Expand Down
5 changes: 3 additions & 2 deletions lectures/kalman.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,12 @@ Required knowledge: Familiarity with matrix manipulations, multivariate normal d
We'll need the following imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
from scipy import linalg
import numpy as np
import matplotlib.cm as cm
import matplotlib.pyplot as plt
%matplotlib inline
from quantecon import Kalman, LinearStateSpace
from scipy.stats import norm
from scipy.integrate import quad
Expand Down
6 changes: 3 additions & 3 deletions lectures/kesten_processes.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ We will discuss these issues as we go along.
Let's start with some imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
```

Expand Down
5 changes: 3 additions & 2 deletions lectures/lake_model.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ These concepts will help us build an equilibrium model of ex-ante homogeneous wo
Let's start with some imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from quantecon import MarkovChain
import matplotlib.pyplot as plt
%matplotlib inline
from scipy.stats import norm
from scipy.optimize import brentq
from quantecon.distributions import BetaBinomial
Expand Down
5 changes: 3 additions & 2 deletions lectures/likelihood_bayes.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ kernelspec:
```

```{code-cell} ipython
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from numba import vectorize, njit
from math import gamma
%matplotlib inline
```

## Overview
Expand Down
5 changes: 3 additions & 2 deletions lectures/likelihood_ratio_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@ kernelspec:
```

```{code-cell} ipython
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from numba import vectorize, njit
from math import gamma
%matplotlib inline
from scipy.integrate import quad
```

Expand Down
5 changes: 3 additions & 2 deletions lectures/linear_algebra.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ material that will be used in applications as we go along.
Let's start with some imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from matplotlib import cm
from mpl_toolkits.mplot3d import Axes3D
from scipy.interpolate import interp2d
Expand Down
5 changes: 3 additions & 2 deletions lectures/linear_models.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,10 @@ Its many applications include:
Let's start with some imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from quantecon import LinearStateSpace
from scipy.stats import norm
import random
Expand Down
5 changes: 3 additions & 2 deletions lectures/lln_clt.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,11 @@ Some of these extensions are presented as exercises.
We'll need the following imports:

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import random
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
from scipy.stats import t, beta, lognorm, expon, gamma, uniform, cauchy
from scipy.stats import gaussian_kde, poisson, binom, norm, chi2
from mpl_toolkits.mplot3d import Axes3D
Expand Down
5 changes: 3 additions & 2 deletions lectures/lq_inventories.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,10 +203,11 @@ Here is code for computing an optimal decision rule and for analyzing
its consequences.

```{code-cell} ipython
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
import quantecon as qe
import matplotlib.pyplot as plt
%matplotlib inline
```

```{code-cell} python3
Expand Down
5 changes: 3 additions & 2 deletions lectures/lqcontrol.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ In order to focus on computation, we leave longer proofs to these sources (while
Let's start with some imports:

```{code-cell} ipython
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline
import matplotlib.pyplot as plt
plt.rcParams["figure.figsize"] = (11, 5) #set default figure size
import numpy as np
from quantecon import LQ
```

Expand Down
Loading