3b1b / manim

Animation engine for explanatory math videos
MIT License
60.27k stars 5.69k forks source link

Multi-graph scenes? #331

Open Li357 opened 5 years ago

Li357 commented 5 years ago

Is it currently possible to create scenes with multiple graphs at once (i.e. for demonstrating connections between f(x) and f'(x) vertically)? It seems like that would be helpful if not already possible. I can draw multiple FunctionGraphs but not have multiple axes and planes.

Russell-Newton commented 5 years ago

You can just change self.graph_origin and run self.setup_axes again

aevedis commented 4 years ago

Hey @Li357, I think I've found a solution to your problem. Check this StackOverFlow post.

alexdriedger commented 2 years ago

How do you do this without using a GraphScene?

alexdriedger commented 2 years ago

For future reference for anyone else who sees this, you can just shift and scale the graphs. Ex: my_axes.scale(0.4).shift(UP * 2)