Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

dont filter exponent notation from svg (#1395)

Mark Millerbd228ee1f519
diff --git a/manim/mobject/svg/svg_mobject.py b/manim/mobject/svg/svg_mobject.py
index 1934458f0..dff423acd 100644
--- a/manim/mobject/svg/svg_mobject.py
+++ b/manim/mobject/svg/svg_mobject.py
@@ -249,7 +249,7 @@ class SVGMobject(VMobject):
A float representing the attribute string value.
"""
stripped_attr = "".join(
- [char for char in attr if char in string.digits + "." + "-"]
+ [char for char in attr if char in string.digits + ".-e"]
)
return float(stripped_attr)