We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d688ac4 commit 3c48fb0Copy full SHA for 3c48fb0
lectures/writing_good_code.md
@@ -70,14 +70,15 @@ The plots will be grouped into three subfigures.
70
In each subfigure, two parameters are held fixed while another varies
71
72
```{code-cell} ipython
73
+%matplotlib inline
74
import numpy as np
75
import matplotlib.pyplot as plt
-%matplotlib inline
76
+plt.rcParams['figure.figsize'] = (10,6)
77
78
# Allocate memory for time series
79
k = np.empty(50)
80
-fig, axes = plt.subplots(3, 1, figsize=(6, 14))
81
+fig, axes = plt.subplots(3, 1, figsize=(8, 16))
82
83
# Trajectories with different α
84
δ = 0.1
@@ -267,7 +268,7 @@ def plot_path(ax, αs, s_vals, δs, time_series_length=50):
267
268
ax.set_ylim(0, 18)
269
ax.legend(loc='upper left', frameon=True)
270
271
272
273
# Parameters (αs, s_vals, δs)
274
set_one = ([0.25, 0.33, 0.45], [0.4], [0.1])
0 commit comments