From c748974ee1a29a510fcd4cc7d757fe3b73b6220c Mon Sep 17 00:00:00 2001 From: Aditi Juneja <91629733+Schefflera-Arboricola@users.noreply.github.com> Date: Thu, 4 Dec 2025 02:01:40 +0530 Subject: [PATCH 1/2] fill_color --> color for MathTeX --- manim/mobject/graph.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/manim/mobject/graph.py b/manim/mobject/graph.py index 55c9d9cbad..67f3e0f774 100644 --- a/manim/mobject/graph.py +++ b/manim/mobject/graph.py @@ -589,7 +589,7 @@ def __init__( elif isinstance(labels, bool): if labels: self._labels = { - v: MathTex(v, fill_color=label_fill_color) for v in vertices + v: MathTex(v, color=label_fill_color) for v in vertices } else: self._labels = {} @@ -697,7 +697,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)): From b3073cc85e91c5d78b58b6bac238a7c3bfec1c0f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Dec 2025 20:35:32 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- manim/mobject/graph.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/manim/mobject/graph.py b/manim/mobject/graph.py index 67f3e0f774..9263067061 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, color=label_fill_color) for v in vertices - } + self._labels = {v: MathTex(v, color=label_fill_color) for v in vertices} else: self._labels = {}