Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ManimCE 0.19.0 - corrupted settings after manim init #4184

Open
uwezi opened this issue Mar 9, 2025 · 1 comment
Open

ManimCE 0.19.0 - corrupted settings after manim init #4184

uwezi opened this issue Mar 9, 2025 · 1 comment
Labels
good first issue Good for newcomers

Comments

@uwezi
Copy link
Contributor

uwezi commented Mar 9, 2025

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
Copy link
Contributor Author

uwezi commented Mar 9, 2025

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.

@JasonGrace2282 JasonGrace2282 added the good first issue Good for newcomers label Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants