Skip to content

Commit cd949bc

Browse files
committed
changed fig sizes to default
1 parent a05c308 commit cd949bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lectures/markov_asset.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ d_series = np.cumprod(g_series) # Assumes d_0 = 1
320320
series = [x_series, g_series, d_series, np.log(d_series)]
321321
labels = ['$X_t$', '$g_t$', '$d_t$', r'$\log \, d_t$']
322322
323-
fig, axes = plt.subplots(2, 2, figsize=(12, 8))
323+
fig, axes = plt.subplots(2, 2)
324324
for ax, s, label in zip(axes.flatten(), series, labels):
325325
ax.plot(s, 'b-', lw=2, label=label)
326326
ax.legend(loc='upper left', frameon=False)
@@ -411,7 +411,7 @@ assert np.max(np.abs(eigvals(K))) < 1 / β, warning_message
411411
I = np.identity(n)
412412
v = solve(I - β * K, β * K @ np.ones(n))
413413
414-
fig, ax = plt.subplots(figsize=(12, 8))
414+
fig, ax = plt.subplots()
415415
ax.plot(mc.state_values, v, 'g-o', lw=2, alpha=0.7, label='$v$')
416416
ax.set_ylabel("price-dividend ratio")
417417
ax.set_xlabel("state")
@@ -606,7 +606,7 @@ with a positively correlated Markov process and $g(x) = \exp(x)$
606606
ap = AssetPriceModel()
607607
states = ap.mc.state_values
608608
609-
fig, ax = plt.subplots(figsize=(12, 8))
609+
fig, ax = plt.subplots()
610610
611611
for γ in γs:
612612
ap.γ = γ
@@ -856,7 +856,7 @@ x = ap.mc.state_values
856856
p = consol_price(ap, ζ)
857857
w = call_option(ap, ζ, strike_price)
858858
859-
fig, ax = plt.subplots(figsize=(12, 8))
859+
fig, ax = plt.subplots()
860860
ax.plot(x, p, 'b-', lw=2, label='consol price')
861861
ax.plot(x, w, 'g-', lw=2, label='value of call option')
862862
ax.set_xlabel("state")

0 commit comments

Comments
 (0)