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
3
votes
0 answers

Python (manimgl) cannot find module in current directory

I'm trying to run a python program (specifically, I'm running manimgl, but I don't think that matters here) and the first line reads from manim_imports_ext import *. However, I am getting the error ModuleNotFoundError: No module named…
DJElectric
  • 349
  • 1
  • 4
  • 18
3
votes
0 answers

Changing overall scale of a graph in manim

How do you change the overall scale of a graph in manim? self.graph_origin = 1 * RIGHT + 0.3 * DOWN self.setup_axes(animate = True) self.LINE = lambda x : 2 * x + 1 LINE = self.get_graph(self.LINE, y_min = -3, y_max =3, x_min =…
ABBC
  • 153
  • 6
3
votes
0 answers

Points of a triangle in the Python Manim Library?

So I am doing some pythagorean theorem related things with manim but I need to get each point of the triangle so I can add a, b, c on each point but how do I do that? class Pythagorean(Scene): def construct(self): triangle =…
user13174917
3
votes
1 answer

Manim is not drawing correct Circuitikz/Tikz figures

I'm very new to coding and am mostly trying to learn on my own. I'm starting to pick up the basics of manim, but am still having difficulties with troubleshooting. I've been trying to get manim to draw tikz diagrams. I started by drawing a simple…
3
votes
2 answers

Asynchronously run different animations in manim

I'm trying run essentially two animations (ref. following code): class RelTrain(Scene): def construct(self): train = Rectangle(height=1, width=4) train2 = Rectangle(height=2, width=2) train.move_to(np.array([-10,0,0])) …
user9343456
  • 351
  • 2
  • 11
3
votes
1 answer

Group manim TextMobjects into one animatable object?

If I had 3 lines of manim text, l = TextMobject("Line 1") l2 = TextMobject("Line 2") l3 = TextMobject("Line 3") and I wanted to animate them all together, how would I do that? I'm looking for something easier to type and more pythonic than v =…
applemonkey496
  • 683
  • 1
  • 10
  • 29
3
votes
1 answer

How to setup Pyglet to work with Manim in Colab?

I'm trying to run shaders version of Manim in Colab. This version has to show rendered video in a live interactive window, as opposed to just writing mp4. I installed and imported everything without errors: from manimlib.imports import * but get an…
Joys
  • 311
  • 3
  • 15
3
votes
0 answers

How to add Manim to Jupyter Notebook?

I am pretty ignorant in operational systems, so I'm a bit lost in here. I've followed the manim guide installation on Windows from this youtube channel "Theorem of Beethoven". I would like to use manim on jupyter notebook, but when I try importing…
Davi Alefe
  • 115
  • 10
3
votes
2 answers

Cannot install this manim lib for python

I'm trying to install manim, (see here: https://github.com/3b1b/manim). I'm using python version 3.7.7. I've followed the steps of this video https://www.youtube.com/watch?v=ZltiKHFWmv8 until I tried to install the requirements.txt…
Daniel Oscar
  • 287
  • 1
  • 9
3
votes
1 answer

How to color part of a fraction e.g. denominator

txt11 = TexMobject(r"-7", color=BLACK) txt12 = TexMobject(r"\frac{1}{7}", color=BLACK).next_to(txt11, RIGHT) I wanna color the denominator of txt12, tried splitting txt12 to: txt12 = TexMobject(r"\frac{1}", r"{7}", color=BLACK).next_to(txt11,…
James Hao
  • 765
  • 2
  • 11
  • 40
3
votes
0 answers

Having problems with installing manimlib by 3blue1brown. Pycairo runs into a problem

I'm attempting to install the manimlib package by 3blue1brown for math animations, all goes well until the installation of pycairo I have followed the instructions from https://github.com/3b1b/manim, downloading and installing all of the system…
Jmcawood
  • 31
  • 3
3
votes
2 answers

Is it possible to run multiple animations with an overall rate_func?

The following is my current code: from manimlib.imports import * class ClockOrganization(VGroup): CONFIG = { "numbers" : 4, "radius" : 3.1, "color" : WHITE } def __init__(self, **kwargs): digest_config(self, kwargs,…
3
votes
2 answers

Failed building wheel for pycairo using manim in Python 3.7 environment

I am following the steps outlined here to set up maths animation for educational purposes. I've had to figure out how to configure all the steps for Python 3.7, but that hasn't posed any major problems. However, I'm now running into errors I can't…
Milad Dakka
  • 43
  • 1
  • 7
2
votes
1 answer

Different ValueTrackers returning same value in Manim

I'm attempting to place multiple DecimalNumbers in Manim, each with a random starting value, so that when I use a ValueTracker on each of them they will seemingly output arbitrary arrangements. Yet when I implement this code: all_d, all_t = [],…
Chris
  • 1,206
  • 2
  • 15
  • 35
2
votes
0 answers

how Manim execute a package project?

I am currently working with manim, I have structured my project in the form of a package Directory where the project is located when trying to run any file I usually do it with the command python -m animations.example This from a directory outside…
1 2
3
28 29