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 1dfeb59 commit 0636d75Copy full SHA for 0636d75
1 file changed
lectures/eigen_I.md
@@ -1035,10 +1035,10 @@ print(f'The approximated greatest absolute eigenvalue is \
1035
print('The real eigenvalue is', np.linalg.eig(A)[0])
1036
1037
# Plot the eigenvector approximations for each iteration
1038
-fig, ax = plt.subplots(figsize=(10, 6))
1039
-ax.plot(errors)
+plt.figure(figsize=(10, 6))
1040
plt.xlabel('iterations')
1041
plt.ylabel('error')
+_ = plt.plot(errors)
1042
```
1043
1044
+++ {"user_expressions": []}
0 commit comments