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
0
votes
1 answer

Polygon set_width and set_height not work

There is right part inverse proportional function (1/x) in the scene, in the begining I draw a rectangle(using polygon), the left down corner is (0, 0, 0), thei right up corner is on the function with x=3. I override update_mobjects, and update the…
James Hao
  • 765
  • 2
  • 11
  • 40
0
votes
2 answers

lambda with condition x: 1/x if x!= 0 not work

I want to draw an inverse proportional function with GraphScene, everything works, However when I set condition of x != 0, a SyntaxError pops: f11 = self.get_graph(lambda x: 1/x if x!= 0) SyntaxError: invalid syntax the error indicates the last…
James Hao
  • 765
  • 2
  • 11
  • 40
0
votes
2 answers

Trying to understand where the menu I get with manim comes from

I'm trying to learn how to use manim. I've been looking at what I believe is the standard tutorial. I'm now taking some code from the documentation of manim (not the tutorial). The code I'm running is this (taken from the first example, but with…
Joel
  • 22,598
  • 6
  • 69
  • 93
0
votes
2 answers

How to get current timestamp in runtime

There are three statements like below: print("first time", time.time()) self.wait(5) print("second time", time.time()) I suppose the difference between "second time" and "first time" will be 5 seconds, however, they are the same, why? I think the…
James Hao
  • 765
  • 2
  • 11
  • 40
0
votes
3 answers

manim TextMobject not work with exception "Latex error converting to dvi

My computer is Windows 10 64bit, and I install python 3.7.3 32bit, and MikTex 2.9 32bit, manim master from git at around june 2019 (one or two weeks ago) and other dependencies, finally I can run SquareToCircle successfully. However when I add a…
James Hao
  • 765
  • 2
  • 11
  • 40
0
votes
2 answers

How can I fix AttributeError in Manim Hello World program?

I am attempting to write a Hello World program in Manim. I have installed Manim and its prerequisite programs, and can run the sample code from the command prompt as intended. This sample code operates in an unusual way; the user issues a command…
user10478
  • 327
  • 1
  • 16
0
votes
1 answer

Why does this generate two different Bezier curves despite having the same anchors/handles (manim)?

I am trying to have two identical Bezier curves in the same scene, one with an end tip and the other with a start tip, but the Bezier curves come out differently despite having the same anchors and handles. I know I can add both tips to the same…
0
votes
1 answer

3blue1brown | 1 problem related in getting manim to run (SquareToCircle example)

I'm following the instructions of the tutorial (https://talkingphysics.wordpress.com/2018/06/11/learning-how-to-animate-videos-using-manim-series-a-journey/) but, when I type (manim37) C:\Users\PaKo>python3…
-1
votes
0 answers

Manim mac M1 installation issues

I followed the instructions in https://docs.manim.community/en/stable/installation/macos.html I have an Apple Macbook air M1 , 2020. I did the following brew install py3cairo ffmpeg brew install pango scipy pip3 install manim After the final step,…
Coniferous
  • 111
  • 5
-1
votes
2 answers

How do I highlight one line of code in Manim?

I find surrounding these lines of code not accurate. from manim import * class CodeTrackingAnimation(Scene): def construct(self): code_str = '''#include using namespace std; int main(){ int sum =…
-1
votes
1 answer

I am getting a "'tuple' object has no attribute 'set_width" error and I don't know what to do

first post on stackoverflow, apologies if this is not written correctly I am pretty new to Python and Very new to Manim. I am a big fan of 3b1b, and was using one of his files from gitlab as a baseline for my text animation (For Reference:…
-1
votes
1 answer

How does one add set symbols in manim?

I'm trying to write the set of natural and real numbers in manim using MathTex, but I haven't found a way that works. Every time I try to use shortcuts I've searched up about LaTeX, such as \N, \natnums, \mathbb{N}, and such don't work, returning…
-1
votes
1 answer

hello guys i am using manim library for animations

from manim_imports_ext import* class VennDiagram(InterractiveScene): def construct(self): radius = 3.0 c1,c2 = circles = Circle(radius= radius).replicate(2) c1.set_stroke(BLUE, 3) c2.set_stroke(YELLOW, 3) …
Om Pal
  • 11
-1
votes
1 answer

Showing a complex transformation in the same screen in two planes

Suppose to a point z in the unit circle in the xy-plane we apply the transformation $$f(z)=z^50-2z+1 $$ so that for a unit (x,y) in the xy-plane we get a point (u,v) in the uv plane.Iwant to take some points ,say 100 points ,in the circle and want…
AgnostMystic
  • 101
  • 3
-1
votes
1 answer

How to create animated vectorfield with particles using manim

I would like to create a visualisation of vectorfield in manim like this one https://www.youtube.com/watch?v=rB83DpBJQsE I'm absolute newbie to Manim and I don't know how to start. Can anyone explain me how to do that? Thanks!