buoyrina
commited on
Commit
·
d0154da
1
Parent(s):
99f0fa7
fix
Browse files
app.py
CHANGED
@@ -29,9 +29,9 @@ def matrix_vector_multiplication_visualization(matrix, vector):
|
|
29 |
fig, ax = plt.subplots(figsize=(6, 6))
|
30 |
|
31 |
# Plot the grid before and after transformation
|
32 |
-
for i in range(grid.shape[1]):
|
33 |
-
|
34 |
-
|
35 |
|
36 |
# Plot the original vector
|
37 |
ax.quiver(0, 0, vector[0], vector[1], angles="xy", scale_units="xy", scale=1, color="red", label="Original Vector")
|
|
|
29 |
fig, ax = plt.subplots(figsize=(6, 6))
|
30 |
|
31 |
# Plot the grid before and after transformation
|
32 |
+
#for i in range(grid.shape[1]):
|
33 |
+
# ax.plot([grid[0, i], transformed_grid[0, i]], [grid[1, i], transformed_grid[1, i]],
|
34 |
+
# color="gray", linewidth=0.5, alpha=0.7)
|
35 |
|
36 |
# Plot the original vector
|
37 |
ax.quiver(0, 0, vector[0], vector[1], angles="xy", scale_units="xy", scale=1, color="red", label="Original Vector")
|