A community-maintained Python framework for creating mathematical animations.
# adjusted gaussian example, that is outside the Scene class
kolibril13d3ebf62abc69
diff --git a/docs/source/examples/plots_examples.rst b/docs/source/examples/plots_examples.rstindex 1af963640..9c7652c6a 100644--- a/docs/source/examples/plots_examples.rst+++ b/docs/source/examples/plots_examples.rst@@ -54,20 +54,17 @@ Examples to illustrate the use of GrapheScenes in Manim:quality: medium:save_last_frame:- class Plot3bGaussian(GraphScene):- global amp- global mu- global sig- amp = 5- mu = 3- sig = 1+ amp = 5+ mu = 3+ sig = 1- def gaussian(self, x):- return amp * np.exp((-1 / 2 * ((x - mu) / sig) ** 2))+ def gaussian(x):+ return amp * np.exp((-1 / 2 * ((x - mu) / sig) ** 2))+ class Plot3bGaussian(GraphScene):def construct(self):self.setup_axes()- graph = self.get_graph(self.gaussian, x_min=-1, x_max=10).set_stroke(width=5)+ graph = self.get_graph(gaussian, x_min=-1, x_max=10).set_stroke(width=5)self.add(graph).. manim:: Plot3cGaussian