Skip to content

Commit 4bbbd36

Browse files
committed
use tight layout instead of figsize
1 parent 0821641 commit 4bbbd36

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lectures/markov_chains_II.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ P = np.array([[0, 1],
310310
ts_length = 10_000
311311
mc = qe.MarkovChain(P)
312312
n = len(P)
313-
fig, axes = plt.subplots(figsize=(11, 5), nrows=1, ncols=n)
313+
fig, axes = plt.subplots(nrows=1, ncols=n)
314314
ψ_star = mc.stationary_distributions[0]
315315
316316
for i in range(n):
@@ -328,6 +328,8 @@ for i in range(n):
328328
axes[i].plot(p_hat, label=f'$x_0 = \, {x0} $')
329329
330330
axes[i].legend()
331+
332+
plt.tight_layout()
331333
plt.show()
332334
```
333335

0 commit comments

Comments
 (0)