Skip to content

Commit cbaead8

Browse files
committed
# removed some unnecessary lines
1 parent 161dc5f commit cbaead8

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

docs/source/examples/plots_examples.rst

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -84,20 +84,8 @@ Examples to illustrate the use of GrapheScenes in Manim
8484
self.setup_axes()
8585
graph = self.get_graph(gaussian, x_min=-1, x_max=10).set_style(stroke_width=5, stroke_color=GREEN)
8686
self.add(graph)
87-
global amp
88-
global mu
89-
global sig
90-
amp = 5
91-
mu = 3
92-
sig = 1
93-
94-
def gaussian(self, x):
95-
return amp * np.exp((-1 / 2 * ((x - mu) / sig) ** 2))
96-
97-
def construct(self):
98-
self.setup_axes()
99-
graph = self.get_graph(self.gaussian, x_min=-1, x_max=10).set_stroke(width=5)
100-
self.a
87+
88+
10189
.. manim:: Plot4SinCos
10290
:quality: medium
10391
:save_last_frame:

0 commit comments

Comments
 (0)