manim icon indicating copy to clipboard operation
manim copied to clipboard

ManimCE 0.19.0 - corrupted settings after manim init

Open uwezi opened this issue 8 months ago • 1 comments

Description of bug / unexpected behavior

The Quickstart tutorial recommends the use of manim init project but this creates a manim.cfg file which distorts the default coordinate system used by Manim.

The use of manim init project is not necessary and should probably be removed from the Quickstart tutorial.

Expected behavior

If anything, manim init project shoukld not create a configuration file which corrupts Manim's default settings.

How to reproduce the issue

run

manim init project my-project --default```
on the command line and then switch to the created project directory and run the scene as
```py
manim -p main.py DefaultTemplate```

<details><summary>Code for reproducing the problem</summary>
Adding a number plane to the created template code highlights the problem. The script is rendered in portrait mode with a highly reduced width of the scene.
```py
from manim import *
class DefaultTemplate(Scene):
    def construct(self):
        self.add(NumberPlane().add_coordinates())
        circle = Circle()  # create a circle
        circle.set_fill(PINK, opacity=0.5)  # set color and transparency

        square = Square()  # create a square
        square.flip(RIGHT)  # flip horizontally
        square.rotate(-3 * TAU / 8)  # rotate a certain amount

        self.play(Create(square))  # animate the creation of the square
        self.play(Transform(square, circle))  # interpolate the square into the circle
        self.play(FadeOut(square))  # fade out animation

Image

System specifications

System Details
  • OS Windows 10
  • Python version (python/py/python3 --version): 3.13.0

uwezi avatar Mar 09 '25 18:03 uwezi

I only now notice that the generated manim.cfg actually sets a portrait pixel resolution. However, some internal fixed coordinates like .to_edge(UP) are still not handled correctly.

uwezi avatar Mar 09 '25 18:03 uwezi

I can work on this if it is assigned to me.

farhanmir avatar Oct 07 '25 20:10 farhanmir

With the current version of manim (https://github.com/ManimCommunity/manim/commit/e489ebf220f12a8e08e76ff4a4456f2b93dfbc74), I get the expected output (video in landscape mode).

Based on this observation I close this issue.

henrikmidtiby avatar Oct 24 '25 12:10 henrikmidtiby