Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Fix default config of manim init project to use correct pixel_height and pixel_width (#4213)

Steven Hedgesa8458cb32967
diff --git a/manim/cli/init/commands.py b/manim/cli/init/commands.py
index dd9d64837..197e97bf7 100644
--- a/manim/cli/init/commands.py
+++ b/manim/cli/init/commands.py
@@ -76,8 +76,8 @@ def update_cfg(cfg_dict: dict[str, Any], project_cfg_path: Path) -> None:
cli_config = config["CLI"]
for key, value in cfg_dict.items():
if key == "resolution":
- cli_config["pixel_height"] = str(value[0])
- cli_config["pixel_width"] = str(value[1])
+ cli_config["pixel_width"] = str(value[0])
+ cli_config["pixel_height"] = str(value[1])
else:
cli_config[key] = str(value)