diff --git a/manim/mobject/graph.py b/manim/mobject/graph.py index 2879c81a60..10ac804fd2 100644 --- a/manim/mobject/graph.py +++ b/manim/mobject/graph.py @@ -588,9 +588,7 @@ def __init__( self._labels = labels elif isinstance(labels, bool): if labels: - self._labels = { - v: MathTex(v, fill_color=label_fill_color) for v in vertices - } + self._labels = {v: MathTex(v, color=label_fill_color) for v in vertices} else: self._labels = {} @@ -697,7 +695,7 @@ def _create_vertex( ) if label is True: - label = MathTex(vertex, fill_color=label_fill_color) + label = MathTex(vertex, color=label_fill_color) elif vertex in self._labels: label = self._labels[vertex] elif not isinstance(label, (Mobject, OpenGLMobject)):