diff options
author | G Sri Harsha | 2020-07-10 18:55:13 +0530 |
---|---|---|
committer | GitHub | 2020-07-10 18:55:13 +0530 |
commit | 5f051a359f454b9b61844cc8aa0c1f19ea99c383 (patch) | |
tree | b3b0a4a8b08a9fbfebe14943d847c7a098a78687 /FSF-2020/calculus | |
parent | 948aa72e9ebad1ac957e9c371a36ab1bf5ef1500 (diff) | |
download | FSF-mathematics-python-code-archive-5f051a359f454b9b61844cc8aa0c1f19ea99c383.tar.gz FSF-mathematics-python-code-archive-5f051a359f454b9b61844cc8aa0c1f19ea99c383.tar.bz2 FSF-mathematics-python-code-archive-5f051a359f454b9b61844cc8aa0c1f19ea99c383.zip |
Update video4_UniformConvergence.py
Diffstat (limited to 'FSF-2020/calculus')
-rw-r--r-- | FSF-2020/calculus/series-and-transformations/Power Series/video4_UniformConvergence.py | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/FSF-2020/calculus/series-and-transformations/Power Series/video4_UniformConvergence.py b/FSF-2020/calculus/series-and-transformations/Power Series/video4_UniformConvergence.py index 1f3e26c..b75da59 100644 --- a/FSF-2020/calculus/series-and-transformations/Power Series/video4_UniformConvergence.py +++ b/FSF-2020/calculus/series-and-transformations/Power Series/video4_UniformConvergence.py @@ -3,19 +3,15 @@ import math class uniformlyConvergent(Scene): def construct(self): - #introText1=TextMobject("Again consider the","above","example") introText2=TextMobject("Let","$g(x)=\\frac { 1 }{ 1+{ x }^{ 2 } }$","and","x=0.5 $\in$(-1,1)") introText3=TextMobject("Lets analyse..","!") - #introText1.scale(0.8) + introText2.scale(0.7) introText3.scale(0.9) introText3.shift(DOWN) - #introText1.set_color_by_tex_to_color_map({"above":YELLOW}) + introText2.set_color_by_tex_to_color_map({"$g(x)=\\frac { 1 }{ 1+{ x }^{ 2 } }$":BLUE,"x=0.5 $\in$(-1,1)":YELLOW}) introText3.set_color_by_tex_to_color_map({"!":GREEN}) - #self.play(Write(introText1)) - #self.wait(0.5) - #self.play(FadeOut(introText1)) self.play(Write(introText2)) self.play(FadeIn(introText3)) self.wait(2) @@ -65,7 +61,7 @@ class graphScene(GraphScene,ZoomedScene): def setup(self): GraphScene.setup(self) - #MovingCameraScene.setup(self) + ZoomedScene.setup(self) @@ -110,19 +106,7 @@ class graphScene(GraphScene,ZoomedScene): self.activate_zooming(animate=True) for p in range(0,5): self.play(Write(lines[p])) - # self.wait(0.5) - # self.camera_frame.save_state() - # self.camera_frame.set_width(0.6) - # self.play(self.camera_frame.move_to, points[0]) - # self.wait(0.4) - # self.play(self.camera_frame.move_to, points[1]) - # self.wait(0.4) - # self.play(self.camera_frame.move_to, points[2]) - # self.wait(0.3) - # self.play(self.camera_frame.move_to, points[3]) - # self.wait(1) - # self.play(self.camera_frame.move_to,ORIGIN) - # self.camera_frame.set_width(14) + self.wait(1) self.get_zoomed_display_pop_out_animation() |