3b1b / 3b1b/manim

Why the axes and Line didn't show after rendering

Aperta
#2,016 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Python
Stelle
93.8k
Fork
7.7k
Metriche di merge delle PR
Metriche PR in attesa

Descrizione

### Describe the error

![OpeningManimExample mp4_20230504_224618 199](https://user-images.githubusercontent.com/3395062/236244030-e6a8d048-a9cc-4612-a8e4-cff35318cbb0.png)

I use the `manimgl --hd OpeningManimExample.py -o`, but the video's **axes** and plot curve didn't show? Why?

What should I do to display the axes and Curve?

### Code and Error
**Code**:

```python
class OpeningManimExample(Scene):
def construct(self):
intro_words = Text(
"""
The original motivation for manim was to
better illustrate mathematical functions
as transformations.
"""
)
intro_words.to_edge(UP)

self.play(Write(intro_words))
self.wait(2)

# Linear transform
grid = NumberPlane((-10, 10), (-5, 5))
matrix = [[1, 1], [0, 1]]
linear_transform_words = VGroup(
Text("This is what the matrix"),
IntegerMatrix(matrix, include_background_rectangle=True),
Text("looks like"),
)
linear_transform_words.arrange(RIGHT)
linear_transform_words.to_edge(UP)
linear_transform_words.set_stroke(BLACK, 10, background=True)

self.play(
ShowCreation(grid), FadeTransform(intro_words, linear_transform_words)
)
self.wait()
self.play(grid.animate.apply_matrix(matrix), run_time=3)
self.wait()

# Complex map
c_grid = ComplexPlane()
moving_c_grid = c_grid.copy()
moving_c_grid.prepare_for_nonlinear_transform()
c_grid.set_stroke(BLUE_E, 1)
c_grid.add_coordinate_labels(font_size=24)
complex_map_words = TexText(
"""
Or thinking of the plane as $\\mathds{C}$,\\\\
this is the map $z \\rightarrow z^2$
"""
)
complex_map_words.to_corner(UR)
complex_map_words.set_stroke(BLACK, 5, background=True)

self.play(
FadeOut(grid),
Write(c_grid, run_time=3),
FadeIn(moving_c_grid),
FadeTransform(linear_transform_words, complex_map_words),
)
self.wait()
self.play(
moving_c_grid.animate.apply_complex_function(lambda z: z**2),
run_time=6,
)
self.wait(2)
```

**Error**:

No Errow, but the video didn't show the axes and curve.

### Environment
**OS System**: Windows
**manim version**: v1.6.1
**python version**: 3.10

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

The issue is about axes and a line not rendering in a Manim animation. Start by examining the OpeningManimExample.py file to see the scene setup. Check the NumberPlane and ComplexPlane creation and rendering calls. Run the provided code with the same command to reproduce the issue, then look into the rendering pipeline or coordinate system handling in manim's source code, particularly around grid and plane visualization.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python
Ambito
computer-graphics
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
45/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.