Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

# removed some unnecessary lines

kolibril13cbaead8055a1
diff --git a/docs/source/examples/plots_examples.rst b/docs/source/examples/plots_examples.rst
index 4b3a5e82a..1af963640 100644
--- a/docs/source/examples/plots_examples.rst
+++ b/docs/source/examples/plots_examples.rst
@@ -84,20 +84,8 @@ Examples to illustrate the use of GrapheScenes in Manim
self.setup_axes()
graph = self.get_graph(gaussian, x_min=-1, x_max=10).set_style(stroke_width=5, stroke_color=GREEN)
self.add(graph)
-global amp
- global mu
- global sig
- amp = 5
- mu = 3
- sig = 1
-
- def gaussian(self, x):
- return amp * np.exp((-1 / 2 * ((x - mu) / sig) ** 2))
-
- def construct(self):
- self.setup_axes()
- graph = self.get_graph(self.gaussian, x_min=-1, x_max=10).set_stroke(width=5)
- self.a
+
+
.. manim:: Plot4SinCos
:quality: medium
:save_last_frame: