ManimCommunity / ManimCommunity/manim

Setting frame width and frame heigh is only taking frame_width into account.

Open
#949 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

issue:bug
Dominant language
Python
Stars
40.9k
Forks
3.1k
Avg merge
3d 12h
Merged PRs (30d)
25

Description

When running this script:
```py
from manim import *
config["pixel_width"] = 100
config["pixel_height"] = 100
config["frame_width"] = 1
config["frame_height"] = 4
class Example(Scene):
def construct(self):
ar = Arrow(ORIGIN,2*UP)
self.add(ar)
```
My expectation would be: a 100x100 pixel image, where one can see the whole arrow (as it is in the field of view.)

Instead, I got this:

![Example](https://user-images.githubusercontent.com/44469195/105351674-25885300-5bed-11eb-8ad3-a7b85da60519.png)

A 100x100 pixel image, however not the whole arrow is visible.

This means, there is a problem with setting frame_height.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Run the provided Python script and compare the resulting 100x100 image with the expected view of the complete arrow. Trace where frame_width and frame_height are applied, then verify that changing frame_height affects the field of view and that the whole arrow is visible.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.