diff options
author | simranchhattani | 2020-06-21 21:12:56 +0530 |
---|---|---|
committer | GitHub | 2020-06-21 21:12:56 +0530 |
commit | cd6b1e54d2aa5b00a1268f21ef27c9a9be2580c8 (patch) | |
tree | bd8656bca2bc56408b8ce30ec4bbe1ed48b368c0 | |
parent | 75b6e721aecb4aea903b560f4c584f751b269155 (diff) | |
download | FSF-mathematics-python-code-archive-cd6b1e54d2aa5b00a1268f21ef27c9a9be2580c8.tar.gz FSF-mathematics-python-code-archive-cd6b1e54d2aa5b00a1268f21ef27c9a9be2580c8.tar.bz2 FSF-mathematics-python-code-archive-cd6b1e54d2aa5b00a1268f21ef27c9a9be2580c8.zip |
Add files via upload
-rw-r--r-- | FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Subspaces/Linear_Subspace.py | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Subspaces/Linear_Subspace.py b/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Subspaces/Linear_Subspace.py new file mode 100644 index 0000000..868c28b --- /dev/null +++ b/FSF-2020/linear-algebra/vector-spaces/Vector-Spaces/Subspaces/Linear_Subspace.py @@ -0,0 +1,37 @@ +from manimlib.imports import *
+class Subspace(ThreeDScene):
+
+
+ def construct(self):
+ axes = ThreeDAxes()
+ self.set_camera_orientation(phi = 80*DEGREES,theta =110*DEGREES)
+ self.begin_ambient_camera_rotation(rate=0.09)
+ cube = Cube(stroke_width=5,color=WHITE).shift([1.5,1.5,1.5]).scale(1.5)
+ cube.set_fill(TEAL)
+
+ cube.set_opacity(0.4)
+ line = Line(color=MAROON,set_opacity=100).shift([1.5,1.5,1.5]).scale(1.5)
+ plane1 = Polygon([0,0,3],[3,0,3],[3,3,0],[0,3,0])
+ plane1.set_opacity(0.8)
+ plane1.set_fill(YELLOW)
+ plane1.set_color(YELLOW)
+
+
+ plane2 = Polygon([0,3,3],[3,3,3],[3,0,0],[0,0,0])
+ plane2.set_opacity(0.7)
+ plane2.set_fill(RED)
+ plane2.set_color(RED)
+
+ vgroup = VGroup(plane1,plane2,line,cube)
+ vgroup.shift([-1,-1,-1])
+
+
+ self.play(ShowCreation(cube))
+ self.play(ShowCreation(plane1))
+ self.play(ShowCreation(plane2))
+ self.play(ShowCreation(line))
+ self.wait(10)
+
+
+
+
\ No newline at end of file |