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.
425
questions
0
votes
0
answers
6
views
Manim: how to define a template for Text objects?
I have to create many Text objects that differs only in the .text.
I tried
newtext=templatetext.copy()
newtext1.text="Nuevo texto"
self.play(Write(newtext1))
but after rendering I see the ...
0
votes
0
answers
6
views
Removing the functions but keeping the shaded region
I am trying to create a solid shape as a region between two curves revolves around an axis, but I would like to take a more step-by-step approach to what is going on, but to keep it brief:
Because of ...
0
votes
0
answers
19
views
Make Triangle with Points
I'm trying to use Manim to make a visual proof of the Squeeze Theorem from calculus. This involves comparing areas. I have made three dots labeled point0, point1, point2, and three lines labeled line1,...
0
votes
0
answers
33
views
How to Implement Brachistochrone with Manim SciPy/SymPy/Numpy and Python
I am just learning about manim from the tutorial, I modify to add another line, just a -x+50, then I was wondering whether the ball that are moving is actually correct, can we determine the speed for ...
0
votes
1
answer
16
views
Can't draw "\mathds{C}" with manim on Google Colab
I followed the official manual for google colab and I'm trying to draw "\mathds{C}" with manim on Google Colab by below code.
%%manim -qm -v WARNING Main
class Main(Scene):
def ...
0
votes
2
answers
36
views
Manim CE unexpected behavior with the Succession Class when animating several times the same object
I am using manim Community Edition v0.15.1 to do math animations. I want to use the Succession class to programatically create a series of animations that must happen one after the other (one ...
0
votes
1
answer
18
views
How do I insert an inline shape into a Manim Mathtex Mobject?
In Manim I'm using MathTex to display equations.
I would like to allow variables in the equation to be shapes that I have constructed with other Manim functions.
And not just a Circle or Square but ...
0
votes
1
answer
29
views
How do I bypass or troubleshoot manim code
class AreaCalculation(Scene):
def construct(self):
quadrilateral = Polygon(
ORIGIN, 6 * RIGHT, 6 * RIGHT + 8 * UP, 8 * UP,
stroke_color=WHITE, fill_color=BLUE, ...
0
votes
1
answer
39
views
Creating a blinking dot animation with manim
I would like to create an animation with manim, where I have a dot that turns on (instantly become visible) for t_on seconds, and then turns off (instantly become invisible) for t_off seconds. And ...
0
votes
1
answer
49
views
How to write arabic text using manim
I have installed lualatex so I can write arabic using manim but I am having trouble understanding how to use it and set it up in manim.
I tried using the command class TexTemplate(tex_compiler="...
1
vote
1
answer
40
views
How can I only color exponents in MathTex?
When using Manim, how can I only color the exponents of a number in a MathTex object?
In the formula I want to color, all "1"s are written as powers.
equation = r"\frac{6}{4^1-2}-\frac{...
0
votes
1
answer
23
views
Pass Latex elements inside Table in Manim TypeError: sequence item 0: expected str instance, Tex found
Manim can take Latex for row_labels, column_labels but not for elements inside table. It seems to be able to accept string only.
Take the following for example:
from manim import *
class ...
0
votes
2
answers
30
views
Transform without moving to the center
i tried to transform a number into other but it went to the center of the screen, but i wanted it to just transform a "1" into a "0", and having the same positioning
I already ...
0
votes
1
answer
32
views
Circumscribe only 1 digit
So I have this table and I want to circumscribe only 1 digit of each real number, in this way:
0,156739345...
0,823478901...
0,465809217...
0,156439345...
0,823478903...
but I don't know how use the ...
0
votes
1
answer
60
views
How to change the Color of a MathTex in Manim (animation)?
function14 = MathTex("4", "a", " - ", "2", "b", " + ", "1", "c", " = ", "0",
font_size=40).move_to([...
0
votes
1
answer
71
views
Manim: How to create a table with Tex in it? and grid only in first line?
I'm making an animation for my Final Paper, and I couldn't insert the symbol of the real numbers, here is the code:
from manim import *
class SimpleAnimation(Scene):
def construct(self):
...
0
votes
2
answers
28
views
Manim Text does not bilink. The error i get is "'c^' is not a recognized color"
class FlashAnimationEffect(Scene):
def construct(self):
tex= Text("E","=","m","c^","2").scale(2)
self.play(Write(tex))
...
1
vote
1
answer
66
views
How to update the current position of a point in manim? I want that the label of the point changing with the moving Point of the plot
"""Currently my Animation of the Points only show (x1|y1), (x2|y2) and (x3|y3) but how can i make it that the Points show the real position of of their corresponding points (even after ...
2
votes
1
answer
69
views
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 ...
0
votes
2
answers
136
views
Manim not installing on Google Colab
I did pip install manim and got an error:
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a ...
0
votes
1
answer
58
views
Rotating 3D mobjects without moving the camera - Manim
So I'm having this code :
class Intro(ThreeDScene):
def construct(self):
config.background_color = rgb_to_color(hex_to_rgb("#141414"))
sq = Square().shift(LEFT)
...
0
votes
0
answers
44
views
2D text to 3d text - Manim
is there a way to have a 2d text on screen and then turn it 3D ?
or is there any way of having a 3d text or I can only achieve that by making complex 3d shapes ?
I tried making complex 3d shapes and ...
0
votes
0
answers
21
views
Creating 4D Axes - Manim
I'm trying to achieve a way of showing 4d characteristics in manim. I would appreciate any way of showing a 4d axes and moving mobjects in a 4d way without coding the mathematics myself. is there a ...
0
votes
1
answer
47
views
Creating a 1D axes in a 3D scene - Manim
so I'm trying to create a 1d axes and I'm failing. what I'm trying to achieve is a line with a tip that is numbered correctly and I zoom in the camera so that it shows a 2D view of the axes, and then ...
0
votes
1
answer
60
views
CharCreature in manim videos
I want to create informative mathematics videos using the Manim engine and I would like to put some of these CharCreatures in 3Blue1Brown videos to have more animation in.
This is what a CharCreature ...
0
votes
1
answer
85
views
Objects' color after changing background color in manim
I'm trying to change the background of my Scene in manim video with a self.camera.background-color= WHITE, the background changed well but all texts are still white.
Is there any other methods to ...
-2
votes
1
answer
29
views
i was coding in manim and I got this error: getter() takes 1 positional argument but 2 were given
`
from manim import *
class ParabolaWithRiemannRectangles(Scene):
def construct(self):
# Create a coordinate system
plane = NumberPlane(
x_range=(-4, 4, 1),
y_range=(-1, 9, 1),
x_length=8,
y_length=10,...
0
votes
1
answer
97
views
Is it possible to change the center of a mobject in Manim?
I'm trying to make a spirograph like animation, with one "crank" turning above the other. This image corresponds to what I'd like, but I can't animate it properly :
So I came up with the ...
0
votes
1
answer
76
views
Is there a way to exporto Maniim videos without background
I'm learning Manim and I would like to know if it is possible to generate videos without the background.
I saw that you can define the background color in a extern file, but I don't know how to render ...
4
votes
1
answer
116
views
Manim Community: `interactive_embed()` causes IPython Curruption (sqlite3.ProgrammingError)
Project Structure
swac_animation
|--- maths.py
maths.py
from manim import *
from manim.opengl import *
config.renderer = "opengl"
class WhatIsFunction(Scene):
def construct(self):...
-2
votes
1
answer
69
views
Manim Dice Simulation
I would like to know how can I create a dice animation displaying random values for my manim project.
I looked over the manim documentation and 3blue1brown github but I'm not really into coding and ...
1
vote
1
answer
26
views
Include shapely 'Polygon' in a manim scene?
Problem Statement
I am creating a manim scene which requires manipulation of a geographical map; I usually handle map data using geopandas, which makes use of shapely polygons for storing boundary ...
0
votes
1
answer
40
views
Two manim animations not displaying at the same time
I have a sample of code that goes like this:
class IntroToEquation(Scene):
def construct(self):
equation = MathTex(
"2^x=3",
substrings_to_isolate="x",
...
0
votes
1
answer
26
views
Can't find any documentation about some arguments of manim code
I was just looking at the example gallery of the community version of manim and was looking at this example and I noticed things that I couldn't find anything about what they were called much less how ...
0
votes
1
answer
76
views
How to make a surface of revolution in manim
from manim import *
class Solids(ThreeDScene):
def construct(self):
x_min, x_max, x_step = 0, 5, 1
y_min, y_max, y_step = -5, 5, 1
z_max, z_min, z_step = -5, 5, 1
...
0
votes
1
answer
101
views
rotate an image with manim
I startet doing maths animations with manim and have the following code:
image = ImageMobject("image.png")
image.move_to(point)
image = always_redraw(lambda: image.rotate(angle=function(x)), ...
0
votes
1
answer
38
views
Error in manim TypeError: LinearGradient.__new__() takes exactly 4 arguments (2 given)
from manim import *
class Solids(ThreeDScene):
def construct(self):
x_min, x_max, x_step = 0, 5, 1
y_min, y_max, y_step = -5, 5, 1
z_max, z_min, z_step = -5, 5, 1
...
0
votes
1
answer
129
views
How do I split up multiple scene classes in manim-slides?
I want to have some form of separation between classes, where I can define methods have some encapsulation. Can I do this with manim-slides? The closest workaround I've found is this, but it ...
0
votes
0
answers
96
views
Best practice Manim animations
I would like to ask for best practice tips to create my own animation package. I have been using a quite suboptimal set of files like https://github.com/PanoPepino/4K_Liverpool_2022/tree/main/Code%...
0
votes
1
answer
29
views
How to set the size of a cell in a MathTable Manim
I have a MathTable in Manim
import * from manim
class Scene(Scene):
def construct(self):
# ...
quarks = MathTable([
["u", "c", "t"],
...
0
votes
1
answer
127
views
MathTex value is not updated in manim
I am trying to write an animation, where number is recalculated, based on the values of t1, t2, which are valueTrackers. Precisely, equation3, which is a result of predefined function get_integral, ...
-4
votes
2
answers
59
views
Write in a bizzare way [closed]
How can I a bizzare way?
For example, I want this figure (start from outside):
0
votes
0
answers
28
views
Why am I getting an 'ImportError: symbol not found' when importing manim in Python 3.x?
(base) debruppaul@Debrups-MacBook-Air ~ % manim
Traceback (most recent call last):
File "/Users/debruppaul/anaconda3/bin/manim", line 5, in <module>
from manim.__main__ import ...
0
votes
1
answer
39
views
Is it possible to use MathTex() and Text() alternately without always creating a new Mobject?
Optimize code for using MathTex() and Text() alternately in Manim
I would like to have the following output (image).
For this output, my code is as follows:
class ZWSAufgabe(Scene):
def construct(...
0
votes
3
answers
66
views
Problem in manim animation only last 2 seconds
class PendBall(Scene):
def construct(self):
square = Square(side_length=1.5, fill_opacity=1, fill_color=BLUE_E)
line = Line(ORIGIN, [0, 4, 0], buff=0)
bullet = Circle(...
0
votes
0
answers
123
views
Why can't I install Manim in Jupyter Notebook?
Trying to make some math visualizations, and I hear Manim is the go-to for that.
Working in Jupyter.
When I run:
from manim import *
I get:
-------------------------------------------------------------...
0
votes
1
answer
55
views
How to make a collision in manim?
How can I make an elastic collision in manim my code right now only move the bullet forward but not bounce back when the conditional statement is true what did I get wrong?
class Problem2(Scene):
...
0
votes
0
answers
39
views
Error converting dvi file to svg to make manim text
I just installed manim on my windows system.
I have updated MikTex before running the manim code.
I tried to output the MovingAngl example code.
After running the manim code, MikTeX gave an error ...
0
votes
1
answer
114
views
Troubles importing manim
import manim
class Vectors(VectorScene):
def construct(self):
self.add_axes()
self.add_plane()
self.add(self.get_basis_vectors())
self.wait()
thats the code i am ...
0
votes
1
answer
174
views
In Manim, how can I combine FadeIn and FadeOut in one animation?
I'm trying to create an animation that fades in a MathTex and then fades it out, as the text scales up and shifts its position throughout the whole animation.
I know I could make it like this, using ...