-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Description
Description of bug / unexpected behavior
ManimCE v0.18.1
Using self.play(Fadeout())
on a DiGraph()
object does not correctly fade out the edges, only the nodes and arrow tips. Removing the individual subobjects works.
Link to the Discord discussion
Expected behavior
All elements of a DiGraph()
should fade smoothly out.
How to reproduce the issue
Code for reproducing the problem
class IntroductionToGraphs(Scene):
def construct(self):
vertexs = [num for num in range(1,7)]
arestes = [(1,2), (3,1), (1,5), (1,6), (5,1), (5,6), (3,4)]
layout = "circular"
graf_arestes1 = Graph(vertexs, arestes, labels = True, layout = layout)
graf_arestes2 = DiGraph(vertexs, arestes, labels = True, layout = layout)
graf_arestes3 = graf_arestes2.copy()
graf_arestes1.scale_to_fit_width(14/3).to_edge(LEFT, buff=0)
graf_arestes2.scale_to_fit_width(14/3)
graf_arestes3.scale_to_fit_width(14/3).to_edge(RIGHT, buff=0)
self.play(
Create(graf_arestes1),
Create(graf_arestes2),
Create(graf_arestes3),
)
self.wait()
self.play(
FadeOut(graf_arestes1),
FadeOut(graf_arestes2),
FadeOut(*[obj for obj in graf_arestes3])
)
Additional media files
Images/GIFs
IntroductionToGraphs.mp4
System specifications
System Details
irrelevant - the problem occurs on both Windows 10 and ManimatorMetadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
🆕 New