from github to this gitea
This commit is contained in:
18
manim tracer une fonction.md
Normal file
18
manim tracer une fonction.md
Normal file
@@ -0,0 +1,18 @@
|
||||
up:: [[manim]]
|
||||
title:: "Voir [[manim Axes]]"
|
||||
#informatique/python
|
||||
|
||||
---
|
||||
|
||||
|
||||
```python
|
||||
from manim import *
|
||||
|
||||
class TestScene(Scene):
|
||||
def construct(self):
|
||||
ax = Axes(x_range=(-3, 3), y_range=(-3, 3))
|
||||
curve = ax.plot(lambda x: (x+2)*x*(x-2)/2, color=GREEN)
|
||||
area = ax.get_area(curve, x_range=(-2, 0))
|
||||
self.play(Create(ax), Create(curve))
|
||||
self.play(Create(area))
|
||||
```
|
||||
Reference in New Issue
Block a user