You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xyzgrid=get_transformedGrid(originalGrid, transformationMatrix) # get a transformed grid
94
+
95
+
plot.scatter(xyzgrid,colors)
96
+
adjust_plot(plot.axes)
97
+
plot.fig.canvas.draw()
98
+
plot.fig.canvas.flush_events()
99
+
exceptValueErroraserr:
100
+
print(err)
101
+
exceptionDialog('An error has ocurred. Remember that you only can write operations between numbers or trigonometric functions in the matrix boxes. ex. sin(3*pi/2) or 30+0.5')
102
+
79
103
if__name__=="__main__":
80
104
"""Transformation matrix"""
81
105
transformationMatrix=Matrix([[1, 0, 0],
82
106
[0, 1, 0],
83
-
[0, 1, 1]])
107
+
[0, 0, 1]])
84
108
85
109
originalGrid=get_grid(-2,2) # Create a straigh grid
86
110
xyzgrid=get_transformedGrid(originalGrid, transformationMatrix) # get a transformed grid
@@ -94,10 +118,14 @@ def adjust_plot(axes):
94
118
95
119
adjust_plot(plot.axes) # Set the limits of the axes
0 commit comments