Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Update docs/source/examples/plots_examples.rst

kolibril138b64e6f296b4
diff --git a/docs/source/examples/plots_examples.rst b/docs/source/examples/plots_examples.rst
index 0d607d93c..1fd5a6e5b 100644
--- a/docs/source/examples/plots_examples.rst
+++ b/docs/source/examples/plots_examples.rst
@@ -11,8 +11,7 @@ Examples to illustrate the use of GrapheScenes in Manim
class Plot1(GraphScene):
def construct(self):
self.setup_axes()
- my_func = lambda x: np.sin(x)
- func_graph=self.get_graph(my_func)
+ func_graph=self.get_graph(lambda x: np.sin(x))
self.add(func_graph)
.. manim:: Plot2yLabel
@@ -173,4 +172,4 @@ This is an parametric function
return np.array((np.sin(2*t), np.sin(3*t),0))
def construct(self):
func=ParametricFunction(self.func, t_max=TAU, fill_opacity=0).set_color(RED)
- self.add(func.scale(3))
\ No newline at end of file
+ self.add(func.scale(3))