Questions tagged [manim]

Manim is an animation engine for explanatory math videos. It's used to create precise animations programmatically, as seen in the videos at 3Blue1Brown.

Manim is a high-level library, written in to create rich 2D and 3D animations. It was developed for the 3Blue1Brown YouTube channel.

References:

424 questions
30
votes
11 answers

ERROR: Could not build wheels for pycairo, which is required to install pyproject.toml-based projects

Error while installing manimce, I have been trying to install manimce library on windows subsystem for linux and after running pip install manimce Collecting manimce Downloading manimce-0.1.1.post2-py3-none-any.whl (249 kB) …
16
votes
1 answer

Display two animations at the same time with Manim

I am trying to run two animations at the same time, for example: a dot falling between two letters as those letters make space in between them. Any advice on how to do so?
shannontesla
  • 885
  • 1
  • 8
  • 27
10
votes
1 answer

Is it possible to run manim programmatically (and not from the command line)?

The original question was posted on Reddit (https://www.reddit.com/r/manim/comments/lw3xs7/is_it_possible_to_run_manim_programmatically_and/). I took the liberty to ask it here. Say I want to code a simple GUI application, where a user can enter…
Adam Ryczkowski
  • 7,592
  • 13
  • 42
  • 68
10
votes
1 answer

Multiple animations simultaneously on a single object in Manim

I have a Square, and I want to move and scale it at the same time: sq = Square() self.add(sq) self.play(ApplyMethod(sq.scale, 0.5), ApplyMethod(sq.move_to, UP*3)) However, the first animation is skipped and only the last one works. Is there a…
James Hao
  • 765
  • 2
  • 11
  • 40
8
votes
1 answer

What is a VGroup in manim?

Could you explain to me what is a VGroup and how is it useful, please? I tried looking for it, but obviously to no avail, not much documentation there is. Thanks in advance.
Tim Solnze
  • 103
  • 1
  • 3
7
votes
3 answers

TextMobject is not defined in Manim

I tried adding text in Manim: class FirstScene(Scene): def construct(self): text=TextMobject("text") self.add(text) but I get a TextMobject is not defined error. What should I do?
A. G.
  • 73
  • 1
  • 6
7
votes
2 answers

How to create a correct pie chart with manim

Anyway, I'm kind of trying (this is actually my first manim program). from manim import * import copy import numpy as np import random color_palette = [BLUE, GREEN, YELLOW, GREY_BROWN] class TestPie(Scene): def construct(self): …
silgon
  • 6,890
  • 7
  • 46
  • 67
6
votes
1 answer

How to play animations with staggered start times in manim

I'm just learning manim and I'm trying to play a bunch of animations that have overlapping start and end times. Suppose T is the length of time it takes each FadeIn to play. What I want is for them to start and finish in a staggered manner, e.g. the…
nullUser
  • 1,601
  • 1
  • 12
  • 29
5
votes
1 answer

Weighted Edges in Manim NetworkX Graph

Currently trying to display the edge weights from a network x graph in Manim, here is my current code: from manim import * import networkx as nx class Run(Scene): def construct(self): G = nx.Graph() G.add_nodes_from([node for…
5
votes
2 answers

Long Text with Manim

While rendering long pieces of text using the community edition of the Manim library, I have noticed that information renders outside of the visible window for a rather unsatisfactory effect. I suspect that the root of the problem is the failure of…
Talmsmen
  • 183
  • 1
  • 7
5
votes
1 answer

Line width Manim

Is there any way to increase the width of the specific line on animation? I have tried to change DEFAULT_STROKE_WIDTH in constants.py and set stroke_width in CONFIG equal to some number but it did not work. Here is the part of my code. My line is…
zdarova_koresh
  • 176
  • 3
  • 13
5
votes
2 answers

Issue in changing the background of a scene in manim

I can't seem to change the camera config in a scene in manim; i put the following code at the top of a scene: CONFIG = { "camera_config":{"background_color": "#003399"} } but the background doesn't change; is there something else needed to…
Martino Wong
  • 59
  • 1
  • 3
5
votes
1 answer

is there a better approach to visualize an array?

I want to make sure the approach I'm using to display an array isn't an awkward work-around for a better approach I'm unaware of. A lot of what I have so far feels pretty awkward. For spacing elements I set each element of a TextMobject array…
David Dobervich
  • 151
  • 1
  • 1
  • 5
5
votes
1 answer

Cancelling terms with manim instead TeX

Can you draw diagonal lines/arrows/ whatever looks like youre crossing out cancelling like terms in a math equation in manim?
TheoremOfBeethoven
  • 1,864
  • 6
  • 15
4
votes
1 answer

Problem with manim, manimlib file missing

I installed manim and it succesfuly renders videos that dont use LaTeX. When I try rendering LaTeX i get this error: latex error converting to dvi. Ive seen some people recommending to run: latex tex_template.tex In the manimlib file, however I…
1
2 3
28 29