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.
274
questions
0
votes
1
answer
28
views
Vector Fields in Manim
Can anyone please explain the concept behind the ‘func’ argument when creating a vector field in Manim? For instance:
func = lambda p: np.sin(p[0] / 2) * UR + np.cos(p[1] / 2) * LEFT
I’m only ...
0
votes
1
answer
36
views
How to create animations of elliptic curves in manim?
I'm playing with manim and I'd like to create an animation with an elliptic curve. This is my code, in the file functions.py:
from manim import *
class EllipticCurve(Scene):
def construct(self):
...
0
votes
1
answer
27
views
Manim draws a wrong line on a plotted graph
I'm working on a school project regarding derivatives and I've encountered a problem. I try to draw a secant line through points (2,4) and (2+dx, f(2+dx)) for f(x)=x^2. For some reason, manim first ...
0
votes
0
answers
19
views
How to check if I have manim installed correctly?
Getting this error when trying to test out Manim after installing:
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/cairo/_cairo.cpython-39-darwin.so, ...
0
votes
0
answers
14
views
NumberPlane grid not showing ManimGL Scene
I recently started using ManimGL version 1.6.1
When I ran the "OpeningManimExample" scene from the example_scenes.py,
there should be a grid in the scene. But it shows only the labels, there ...
0
votes
0
answers
21
views
Manim Vollkorn Font
Manim version:
Manim Community v0.15.1
Ubuntu Version:
Ubuntu 20.04.4 LTS
How do I use vollkorn font in tex objects?
class a_Multiplicative_Inverse(Scene):
def construct(self):
...
0
votes
0
answers
10
views
How can I change the tip_width and tip_height of NumberLine? (manim v0.15.2)
(Hi. This is my very first question on stack overflow so please let me know if the question is unclear.)
I am trying to make the arrowhead of a NumberLine mobject smaller than its default (which is ...
0
votes
1
answer
58
views
How to move Arrow in manim along a path, adjusting end points and orientation?
I'd like to be able to move a pair of vectors (radial and tangent) along a circular arc using Manim. This requires a move and rotate operation. I got as far as:
from manim import *
import numpy as ...
0
votes
1
answer
62
views
How to use Manim to animate a point moving on a number line?
I'd like to use Manim to animate the position of a parameter on a number line. I figured out how to animate the end position of the parameter as a line using ParametricFunction:
from manim import *
...
0
votes
2
answers
36
views
Globally or Locally change manim default font color for Tex and Text
Manim Community v0.15.1
I am new to Manim.
I have been trying to change the font color of both Tex and Text objects without having to set the color for each Tex or Text object individually.
How do I ...
0
votes
0
answers
18
views
Coordinates disappear after rotating
I'm trying to make the coordinates appear after the last turn, which is in the perspective of x and z, but all the numbers disappear, could someone help me if there is a way for the numbers to also ...
0
votes
1
answer
15
views
Color MObject with inner arc
I am using manim community where I created an MObject by using Line and ArcBetweenPoints.
When I try to fill the MObject, the object is colored between by the start and end point of the larger arc. Is ...
1
vote
1
answer
79
views
Manim Equation Transformation
Manim Community v0.15.1
class Equation_Transformation_Bug(Scene):
def construct(self):
equation_1 = MathTex("w", "\\times","v", "=", "1")
...
0
votes
1
answer
54
views
Crop Manim Animation to Match Content Size
For the following Manim code, I would like to (automatically) produce an animation that only contains the equation eq with no empty space surrounding it. How can I accomplish this?
from manim import *
...
1
vote
1
answer
61
views
Zoom-out for manim Axes
Suppose we have an Axes object and a graph plotted in the coordinate system defined by these axes.
Is it possible to "zoom-out" by one or both axes, so we can see more of the graph, while ...
0
votes
0
answers
82
views
Match Beamer equation size with animated Manim equation
I am trying to animate several equations in a Beamer presentation using the Manim library. After I generate the animations, I want to include them in the presentation with exactly the same size as if ...
1
vote
1
answer
42
views
what it is an iterable of floats/complex numbers?
I am someone who is learning manim in a self-taught way but I have come across the term "iterable of floats/complex numbers" in the "get_coordinate_labels" method of the class ...
0
votes
1
answer
490
views
Problem with Python PIL/dylib and compatibility with macOS
EDIT: Please check the comment I wrote below
I am running macOS High Sierra 10.13.6 and I think I have downloaded a version for PIL library(using brew install py3cairo probably) that is not compatible ...
1
vote
0
answers
54
views
How do I Apply Multiple Linear Transformations
I'm trying to use LinearTransformationScene's apply_matrix multiple times:
from manim import *
class LT(LinearTransformationScene):
def __init__(self):
super().__init__(
self,
...
1
vote
1
answer
61
views
Creating circles inside of an circle in Manim?
I want to create this image with manim. I created this image with the following code:
class Circles(Scene):
def construct(self):
circleOne = Circle()
circleTwo = Circle()
...
0
votes
0
answers
80
views
PkgResourcesDeprecationWarning during manim installing inubuntu 18.04
enter image description here
when I tried to install manim in ubuntu18.04,I encoutered bug about "PkgResourcesDeprecationWarning".I tried to fix it ,but failed.Hope someone good could help ...
0
votes
0
answers
27
views
Transform a fixed_in_frame_mobject
I was trying to transform a mobject when it was fixed in frame to another that hasn't appear on screen but it just transforms the first character, the rest of them aren't fixed in frame, I tried to ...
0
votes
1
answer
63
views
Align asymmetrical polygons in manim
I've learned to draw (via verticies) a number of asymmetrical polygons in Manim. (if it matters, the shapes I'm concerned with are the values "longa", "brevis", "semibrevis&...
0
votes
1
answer
50
views
how can I rotate line with only changing theta?
I was making animation with manim and I tried to make line that one end is fixed, and one end moves along the arc. The way I wanted to solve this problem was to define each point with theta, and let ...
1
vote
1
answer
119
views
manim camera.move_to and camera.scale at the same time don't work
Here is a sample code:
from manim import *
import numpy as np
class Problem(MovingCameraScene):
def construct(self):
circle_left = Circle(radius=2).move_to(np.array([-3, 0, 0]))
...
0
votes
0
answers
16
views
Vbuff argument automatically adjusted in manim
Is it possible to automatically adjust vbuff with the number of rows of a table? I'm trying to play around it "by hand" but I figured maybe there's something that can be done automatically?
...
0
votes
1
answer
39
views
plotting area betwwn implicit curves
I am trying to create a picture which shows area between two implicit functions and the horizontal rectangles. I am using Manim community edition.
The following code is giving error messages on area ...
0
votes
1
answer
57
views
Unresolved reference in Manim Community with pycharm
I installed Manim community version 0.14.0 using pip install manim on Windows 10. I used the code example given on installation page and it works fine in pyCharm terminal window with command
manim ...
0
votes
1
answer
96
views
Plot multiple dots over a range of coordinates on a graph with Manim?
Is there a way to plot multiple dots over a range, specifying multiple coordinates? Does this need to be manually completed or could it be done another way?
class Scatter(Scene):
def construct(...
0
votes
1
answer
112
views
manim set_z_index with value_tracker
The value_tracker seems to not take into account the z.index for a small amount of time at the end when changing its values and I don't really understand why. I've deliberately added lots of ...
0
votes
1
answer
173
views
"manim: command not found". Un and Reinstalled Manim and now having issues
/bin/sh: manim: command not found
From other answers I've found it seems to be an issue with path or directory? I'm not sure though and I don't want to make things worse. Does anyone know how to fix ...
2
votes
0
answers
628
views
Difference between BtBn and gyan.dev for FFmpeg
I am trying to use ManimGL and the program is not running without FFmpeg or Avconv.
I went to the Official Website, which seems to provide no clue about it.
I went to the repo's README and it leads to ...
0
votes
1
answer
97
views
Add buff only in one end of a manim line / arrow
I am connecting two rectangles with a line with a tip or an arrow (it doesn't matter which one). I only want buff at the end of the arrow, not both start and end.
from manim import *
class MyScene(...
0
votes
0
answers
23
views
"ValueError: 'url(#color-1)' is not a recognized color." SVG in manimce
I am trying to display an SVG in my scene. when running, I encounter this error ValueError: 'url(#color-1)' is not a recognized color. does anyone know what I could do to fix this?
this is my code:
...
0
votes
1
answer
75
views
How do I pass arguments to Manim Community via command line?
Manim Renders scene(s) to an output file with,
manim [OPTIONS] FILE [SCENES]
I didn't find a way to pass arguments to Manim Community after checking A list of all CLI flags.
How can I pass arguments ...
0
votes
1
answer
108
views
Manim exception in text mobject example
I'm trying to run this example from Manim community documentation:
from manim import *
class HelloWorld(Scene):
def construct(self):
text = Text('Hello world').scale(3)
self.add(...
1
vote
1
answer
75
views
Debug Manim community in PyCharm
Is there any way to debug a Manim community python script within PyCharm?
I found this discussion for Manim 3b1b version but it doesn't apply to Manim community and I prefer to use the community ...
0
votes
1
answer
74
views
How to animate a sine wave with decreasing period?
I'm trying to animate a sine wave whose periodicity shrinks, as if the graph is getting 'squished' from the left and right edges (y=sin(ax)) for continuously increasing values of a). I've tried using ...
0
votes
1
answer
152
views
How to rotate text manim
Is there anyway to rotate a
Text()
in manim
I have tried using
Rotate(Text())
it did not work .
0
votes
0
answers
65
views
Create an object every xx seconds with Manim
I started to play around with the Mathematical Animation Engine (Manim), but I am struggling a lot.
I would like to create a object every xx seconds randomly on the display.
I have tried using an ...
0
votes
0
answers
44
views
Python class constructor not identifying default attributes
I am new to Python and to Manim so forgive me if I am not using the right words or have missed something basic!
I am following this tutorial to visualise an ANN in Manim. I have downloaded the .py ...
0
votes
0
answers
48
views
Problem in manim after installation on Apple Silicon
I am having problems with manim on my machine (with a M1 chip).
I have followed the MacOS installation guideline on the manim site; I have also checked that my terminal response to pip3 -V is /usr/...
2
votes
0
answers
258
views
How do I use manim with vs code and Anaconda?
What I've done:
Installed Anaconda and ManimCE
Selected the correct Python interpreter in VS Code (shows the expected version of Python)
"added" (quotes since that's my problem) Anaconda ...
-1
votes
1
answer
131
views
Manim reverse = True only works for text
I'm using manim and trying to reverse animation of a line (fading in from right to left instead of from left to right). I'm using this part of the documentation as a model : https://docs.manim....
0
votes
1
answer
117
views
manim add dots to circle list
I am trying to create a bunch of circles around a bigger circle and the smaller circles need to have dots added to them. I am however struggling with adding the dots.
I believe it is because the ...
0
votes
0
answers
16
views
Manim gifs not showing in builded jupyter book
I'm pretty new to the Jupyter Notebook/Book universe, so I'm sorry if this question seems silly.
I'm trying to integrate Manim animations into my Jupyter Book rendering my animations as gifs. But ...
4
votes
4
answers
14k
views
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-...
1
vote
2
answers
145
views
Manim MathTex - Multiple text fragments in numerator of fraction
I am working on a Manim project where I am manipulating equations algebraically. This is made easy using many of the provided utilities, but in order to do so smoothly I must separate MathTex objects ...
0
votes
1
answer
177
views
Manim png rendered is cropped
I'm trying to plot a table from numbers upto 100, but when the png is rendered (because there's still no animation), the image is cropped and I don't know if it's necesary to do some zoom out to the ...
1
vote
0
answers
36
views
Mobject position not updating in "MANIM" after the animation is done
When I'm animating using
self.play(mobject.animate.move_to())
the object in the screen is moving but what I've observed is that the values are not updating to the new position How can I do that