r/manim • • 1d ago

question How can I fix this animation so that "f" moves to the right?

Thumbnail
youtube.com
3 Upvotes

The editing isn't finished, don't worry that it just generally kind of looks bad and it gets cut off, that's not my issue right now. The problem is that f doesn't go to the left when "x" is transformed to "TheVariableBeingSquared", then it awkwardly snaps back to it.

I'm looking for either

- a way to fix the transform to "TheVariableBeingSquared" to the right of "f", even while it's being transformed, or

- a way to fix "f" to the left of the transform to "TheVariableBeingSquared" while it's being transformed

Both are equivalent, since I can just keyframe it in place using the editing software.

Here's my code:

f = MathTex(r'f', font_size=60)
eq = MathTex(r'(x)=x^{2}', font_size=60)
eq.always.next_to(f, RIGHT, buff=0.1)


self.play(Write(f, run_time=0.3), Write(eq, run_time=1.6))
self.wait(5.25)

self.play(Transform(f, MathTex(r'\text{ThisFunctionIsEqualToXSquared}', font_size=60)))
self.wait(10.31666)

self.play(Transform(f, MathTex(r'f', font_size=60), run_time=0.6833333))
self.wait(5.0333)

self.play(Transform(f, MathTex(r'f', font_size=30)), Transform(eq, MathTex(r'(\text{TheVariableBeingSquared})=\text{TheVariableBeingSquared}^{2}', font_size=30)))
self.wait(30)

r/manim • • 1d ago

Why Do We Need Blockchain? Explained Without the Hype

Thumbnail
youtube.com
0 Upvotes

I made an animated explainer, that explains why do we need a blockchain at all as a society.


r/manim • • 2d ago

A simple example of using manim for MRI physics

Post image
1 Upvotes

Hello everyone, For those interested, here is the 3D Ultrashort Echo-Time (UTE) MRI kspace trajectories: https://youtu.be/YLaz4P1-KOs And here is an illustration why multi-echo UTE MRI can be used to generate CT-like bone imaging and T2* map of short-T2* tissues such as tendon, ligaments, menisci, etc., those decays too quickly to capture by conventional FSE/TSE sequences: https://youtu.be/-c1TVBGnxXM For more information on MRI-based radiation-free CT-like bone imaging and quantitative T2* mapping of short-T2 tissues, feel free to look at my mecho UTE project page: https://hdocmsu.github.io/projects/canon_2_ute/ Cheers, Hung


r/manim • • 2d ago

made with manim How to Solve an "Unsolvable" Equation?!

Thumbnail
youtu.be
1 Upvotes

Hey everyone,

This is the 4th video I've made for my channel using Manim. This time, I wanted to break down the geometric intuition behind Numerical Analysis and answer a simple question: how do we solve equations like x = cos(x) when standard algebra hits a wall?

Instead of treating them as formulas to memorize for an exam, I animated the three main root-finding methods, Bisection, Fixed-Point Iteration, and Newton-Raphson, to show how they actually behave. The video covers the |g'(P)| < 1 convergence condition, uses the Mean Value Theorem to visualize the "safe zone" around a root, shows why Newton-Raphson is actually a special case of Fixed-Point Iteration, and looks at the pitfalls that can make them fail (like the Ping-Pong effect). It also wraps up an unanswered mystery about Kepler's equation from my last video.

(Quick note: The original video is in Arabic—if YouTube doesn't switch automatically, you can enable the English audio track and subtitles in the player settings.)

I'd really appreciate any honest feedback on the animations, pacing, or math explanations so I can improve the next ones. Thanks for watching!


r/manim • • 3d ago

made with manim I’ve been making Manim lessons. Here’s how I animated a volatility surface

1 Upvotes

One scene I had fun building starts with a flat sheet in Manim. Every option gets the same volatility. Then I use Transform to bend the sheet into a surface fitted to Bitcoin options data. In a separate shot I overlay the data as white dots, so you can see where the fit follows the marks and where it drifts. The axis key stays in the corner while the camera moves.

I’m still wondering about the order of those shots. If you were seeing a volatility surface for the first time, would you rather start with a couple of 2D slices or see the whole shape first?

That scene is part of Explainer Videos, a collection of lessons I’ve been making on math, physics, AI, computer science, philosophy, and quant finance. The Manim code and lesson notes are on GitHub. If you’d like to work on a scene together, suggest a better way to explain something, or help with the Mandarin versions, I’d love to hear from you here or in a GitHub issue.


r/manim • • 4d ago

made with manim how many possible values of θ are there?

Thumbnail
youtube.com
4 Upvotes

r/manim • • 4d ago

made with manim Video: What If Time Isn't a Dimension? One Angle, One "Now" for the Whole Universe

0 Upvotes

Hey everyone,

To make a long story short, I've been working on a modified model of relativity for the past few years and I just submitted it for publication. Along with the paper, I built a few things, one of them being this manim video. It was AI generated to be clear, but it's modeled after the paper and uses the same codebase that the paper is validated against. I'd love feedback, the voiceover leaves a lot to be desired... I know.

https://youtu.be/O67vRiFO9tc

And this is unrelated, but if you're interested in a mac app that explores the model further:

https://github.com/flusterIO/aog_explorer/releases/tag/0.0.4


r/manim • • 4d ago

I built a visual no-code & AI editor for Manim so you don’t have to hand-code every camera angle and coordinate

Thumbnail gallery
3 Upvotes

r/manim • • 5d ago

Only 2% Can Prove This Relation!

Thumbnail
youtube.com
1 Upvotes

r/manim • • 5d ago

Why a sphere with antipodal points glued contains a Möbius strip: a continuous deformation with ValueTracker + always_redraw

4 Upvotes

This clip is from a lecture series on algebraic curves that I'm animating entirely in Manim Community 0.22 (I'm a mathematician; two lessons are out, three more are finished).

The scene: I wanted to show why a band around the equator of a sphere becomes a Möbius strip when antipodal points are glued. A crossfade from one surface to the other explains nothing. What worked was a one-parameter family of surfaces driven by a ValueTracker inside always_redraw: half of the band closes up and twists at the same time, until its two ends meet with the orientation reversed. The two coloured edges make the single boundary visible at the seam.

A few things from the series that may be useful to others here:

- Narration first, animation second. Each lesson has one Python file with the narration, split into segments of one or two sentences. Every scene is a sequence of `with self.seg("s3b"):` blocks. If a recording exists for a segment, the block lasts exactly as long as the recording; otherwise the duration is estimated from the text length. So I render a silent draft, record, and re-render without touching any timing by hand. Subtitles come out of the same file.

- `self.until(0.6)` waits until 60% of the current narration segment has passed. It turned out to be the most useful helper of all: formulas appear when the voice reaches them.

- 3D scenes are slow and not cached, so the build script hashes each scene's source, narration text and audio files, and re-renders only the scenes that changed.

- Vertical output for Shorts: setting config.pixel_width/pixel_height to 1080x1920 and config.frame_width to 8 at the top of the scene file was enough.

The English narration is synthetic (I record the Greek version myself). Lecture notes with full proofs are free PDFs.

Lesson 1 (affine varieties and the Nullstellensatz): https://youtu.be/-0tejxzZPKE

Playlist: https://www.youtube.com/playlist?list=PLOxVgVk98eP0

Happy to answer questions about any of the scenes.


r/manim • • 5d ago

Can You Find The Parabola's Equation?

Thumbnail
youtube.com
2 Upvotes

r/manim • • 6d ago

Three Semicircles In A Quarter Circle... What is r ?

Thumbnail
youtube.com
2 Upvotes

r/manim • • 7d ago

Can You Find The Ratio 𝑅 / 𝑟?

Thumbnail
youtube.com
2 Upvotes

r/manim • • 8d ago

made with manim How’s this ? Gut or chopped?

10 Upvotes

r/manim • • 8d ago

made with manim [WIP] Will try to use a song's lyrics in order to explain how my keyboard works. This is quick because of the very short intro of the song.

2 Upvotes

Anything I need to correct?


r/manim • • 10d ago

Can the Number 3 Hide Infinity? #Shorts #Ramanujan.

Thumbnail
youtube.com
0 Upvotes

Can the Number 3 Hide Infinity? #Shorts #Ramanujan”.


r/manim • • 11d ago

question can i dowload and use manim in python 3.15 , its goving me error when dowloading and claude suggested using python 3.12

1 Upvotes

r/manim • • 12d ago

Title: My Manim explainer of Jim Propp's "Estimating π with a Coin": coins that flip, a random walk, and the arcsine series

2 Upvotes

I built a 4-minute video entirely in Manim CE. Some things I'm happy with:

• Coins that flip in 3D-ish (a squash plus a rim ellipse, swapping faces at the midpoint)

• Each landed coin becomes a step of a random walk

• All 5 Catalan paths for k=3 drawn, then grids of the paths for k=0 to 4

• A live running-average plot of 3,000 simulated rounds on a log x-axis

The narration timing drives the scene timing, so every animation lines up with the voice.

Video: https://youtu.be/nrAMzfikPTE

Happy to share how I did the coin flip if anyone wants it. Feedback welcome!


r/manim • • 12d ago

I built an open-source library of 96 Manim components for AI-generated explainer videos

13 Upvotes

So, I've been working on an AI-powered explainer video generator using Manim, and one thing I noticed is that most AI agents tend to write animation code from scratch every time.

So I decided to build a reusable component library: manimater-components.

It currently has 96 tested components covering electrical engineering, power systems, control systems, microelectronics, ML, computer science, physics, chemistry, finance and more.

The idea is pretty simple: instead of generating hundreds of lines of Manim code, an AI agent just picks a component and passes its parameters as JSON.

{
  "component": "synchronous_motor",
  "params": {
    "poles": 2,
    "frequency_hz": 50
  }
}

Every component comes with a working example, the entire catalog is dry-run tested in CI, and there's a machine-readable catalog.json that agents can use to discover components.

I've also included a Claude skill to help agents use the library and contribute new components.

Contributions are very welcome.

GitHub: https://github.com/bishnt/manimater-components

Would love to hear your thoughts!


r/manim • • 13d ago

matching repeated terms in TransformMatchingTex

1 Upvotes

when a derivation has the same term twice, how do you make TransformMatchingTex send each copy to the right place? do you group the pieces first or use explicit transforms for the repeated terms?


r/manim • • 14d ago

How I make my Fourier Animations

Thumbnail
youtu.be
9 Upvotes

r/manim • • 14d ago

I made this video in manim on volumes of revolution centred around Kepler's wine barrel problem

Thumbnail
youtu.be
5 Upvotes

r/manim • • 16d ago

for the french here!

Thumbnail
youtu.be
3 Upvotes

r/manim • • 16d ago

Presentation Slides using Manim

3 Upvotes

Hi everyone,

I got into using Manim when a friend of mine made a presentation video for a lecture using Manim and I thought I should also make good slides. From what I found, most tools created video files which were bulky and I wanted something that I can run on any PC without installing anything. Many people have started using AI for making slides and it used html canvas approach but frankly I was tired (and I guess many others as well) of seeing the same template time and again.

I am not a frontend person so I had to heavily rely on AI to make this but everyone who saw the slides I made with it really liked it. I think there is niche of people who have to make slides with equations and technical graphs, know enough coding to understand how to use Manim, but find it hard to work with.

Tool: https://github.com/bridgesign/manim-web-bridge

Its still work in progress on the editor side because I want to give a standard slide editor like experience but whenever something more complex needs to be achieved, just click and edit the source code. I tried using manim-slides extension but it embedded mp4 and I wanted something that scales based on screen size and high quality mp4 take up space.

Open to suggestions on how to improve (from feature point as I don't expect anyone to sit with slop code) though it will probably take time as I first need to cleanup the code by hand. Hope that the tool will help everyone slide decks!

P.S.: I only told my agent how to group things and what type of transition to use. It was able to write readable code and I think its only possible because of the effort of the community that maintains it (Thanks!)

tl;dr -- A bridge to convert manim scene into standalone html file and js player without relying on video output.