ManimCommunity / ManimCommunity/manim
Linear transformation scene ghost vectors leaves ghosts
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 40.9k
- Forks
- 3.1k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 25
Description
## Description of bug / unexpected behavior
When `leave_ghost_vectors=True` and "show_basis_vectors=False", vectors added to `LinearTransformationScene` will have strange ghosts.
## Expected behavior
No ghosts.
## How to reproduce the issue
```py
class VectorArrow(LinearTransformationScene):
def __init__(self, **kwargs):
LinearTransformationScene.__init__(
self,
leave_ghost_vectors=True,
show_basis_vectors=False
)
def construct(self):
self.add_vector(Arrow(ORIGIN, [1,2,0], stroke_width=2, tip_length=0.2, buff=0))
self.apply_matrix([[1,1],[0,1]])
```
## Additional media files

Images/GIFs
## Logs
Terminal output
```
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR
```
## System specifications
System Details
- OS (with version, e.g Windows 10 v2004 or macOS 10.15 (Catalina)):
- RAM:
- Python version (`python/py/python3 --version`):
- Installed modules (provide output from `pip list`):
```
PASTE HERE
```
LaTeX details
+ LaTeX distribution (e.g. TeX Live 2020):
+ Installed LaTeX packages:
FFMPEG
Output of `ffmpeg -version`:
```
PASTE HERE
```
## Additional comments
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the LinearTransformationScene entry point and reproduce the example using leave_ghost_vectors=True, show_basis_vectors=False, add_vector, and apply_matrix. Trace how the vector and its ghost are created during the transformation; done means the reproduction renders without unintended ghost vectors.
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
- 42/100