diff --git a/manimlib/animation/transform_matching_parts.py b/manimlib/animation/transform_matching_parts.py index 7a85a806..079d2235 100644 --- a/manimlib/animation/transform_matching_parts.py +++ b/manimlib/animation/transform_matching_parts.py @@ -132,4 +132,4 @@ class TransformMatchingTex(TransformMatchingParts): @staticmethod def get_mobject_key(mobject): - return mobject.get_tex_string() + return mobject.get_tex() diff --git a/manimlib/mobject/svg/tex_mobject.py b/manimlib/mobject/svg/tex_mobject.py index 88e58f09..4efeae32 100644 --- a/manimlib/mobject/svg/tex_mobject.py +++ b/manimlib/mobject/svg/tex_mobject.py @@ -132,7 +132,7 @@ class SingleStringTexMobject(SVGMobject): num_rights += 1 return tex - def get_tex_string(self): + def get_tex(self): return self.tex_string def path_string_to_mobject(self, path_string): @@ -222,7 +222,7 @@ class TexMobject(SingleStringTexMobject): return tex1 == tex2 return VGroup(*filter( - lambda m: isinstance(m, SingleStringTexMobject) and test(tex, m.get_tex_string()), + lambda m: isinstance(m, SingleStringTexMobject) and test(tex, m.get_tex()), self.submobjects )) @@ -259,7 +259,7 @@ class TexMobject(SingleStringTexMobject): return self[start_index:stop_index] def sort_alphabetically(self): - self.submobjects.sort(key=lambda m: m.get_tex_string()) + self.submobjects.sort(key=lambda m: m.get_tex()) def set_bstroke(self, color=BLACK, width=4): self.set_stroke(color, width, background=True) diff --git a/manimlib/scene/vector_space_scene.py b/manimlib/scene/vector_space_scene.py index 26310fb9..ddf2fb85 100644 --- a/manimlib/scene/vector_space_scene.py +++ b/manimlib/scene/vector_space_scene.py @@ -408,7 +408,7 @@ class LinearTransformationScene(VectorScene): else: label_mob.target_text = "%s(%s)" % ( transformation_name, - label_mob.get_tex_string() + label_mob.get_tex() ) label_mob.vector = vector label_mob.kwargs = kwargs