Skip to content

Commit 0636d75

Browse files
Fix building error
1 parent 1dfeb59 commit 0636d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lectures/eigen_I.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,10 +1035,10 @@ print(f'The approximated greatest absolute eigenvalue is \
10351035
print('The real eigenvalue is', np.linalg.eig(A)[0])
10361036
10371037
# Plot the eigenvector approximations for each iteration
1038-
fig, ax = plt.subplots(figsize=(10, 6))
1039-
ax.plot(errors)
1038+
plt.figure(figsize=(10, 6))
10401039
plt.xlabel('iterations')
10411040
plt.ylabel('error')
1041+
_ = plt.plot(errors)
10421042
```
10431043

10441044
+++ {"user_expressions": []}

0 commit comments

Comments
 (0)