Where Does Manim Save Videos?

By default, you’ll find all your Manim output files in a folder called “media” that gets created next to the Python file that you use to create animations. In the picture above, the media folder is in the same location as the Python file, called “Manimclass.py”, that I used to create the animations. For instance, … Read more

How To Showcase Code In Manim

You can showcase code in Manim by using the Code() command and either typing out your code as a string or passing a file name with the code you want to showcase. Table of contents: How to show code in Manim with the Code() command and code passed as a string The first way to … Read more

How To Zoom In/Out In Manim

The easiest way to zoom into a scene in Manim is to group every object on the scene using a VGroup() and then change the scale of the group. The second (slightly harder) way to zoom in or out is to use a moving camera scene. Let’s look at some examples for both of these … Read more

How To Export Manim Animation As GIF

If you want to export Manim files in .gif format, pass the -i flag into the Terminal. You will find your output file in the same location as your other animation files. Here’s how to export your Manim animations as GIF files using VS Code: How to export Manim animations as gif files with VS … Read more

How To Animate An Arrow In Manim

You can create an arrow in Manim with the Arrow() command. In this guide, I’ll cover everything you need to know about Manim arrows and how to animate them: How to create an arrow in Manim You can create an arrow in Manim with the Arrow() command. Also, since every arrow is essentially a line … Read more

How To Plot A Function In Manim

You can plot a function onto axes in Manim by first creating the axes with the Axes() command, and then creating and plotting the function with the .plot() command. In this guide: Let’s look at a few examples: How to create axes in Manim To create the axis in Manim use the Axes() command. Inside the parentheses, you can … Read more

Understanding The Lambda Function In Python, What Is It?

When creating math animations with Manim, understanding how the Python lambda functions work can be extremely useful. For example, they can be used to graph and animate various functions on the axis. When I first came across Python lambda functions I had trouble understanding how they work. But then, as I wrote more and more … Read more

Manim Coordinate System (Number Plane Grid) Explained

The default scene in Manim is made up of 8 by 14 squares. This is the coordinate system, also called the NumberPlane() that you can use to position mobjects on the screen. How to show the Manim coordinate system grid on the screen You can show Manim coordinates on the screen like this: Output: How … Read more

How To Highlight Objects In Manim

You can highlight objects in Manim by using Circumscribe() or Indicate() commands inside of self.play(). Inside of their parentheses define the object that you want to highlight. Let’s look at a few examples. How to highlight objects in Manim First, let’s learn the basics and highlight entire objects or object groups. Example: Output: Code explanation: … Read more