Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Added kwargs to match_width, etc. methods

Grant Sanderson5d811d2e8178
diff --git a/mobject/mobject.py b/mobject/mobject.py
index f079b3305..a6dfc7e4f 100644
--- a/mobject/mobject.py
+++ b/mobject/mobject.py
@@ -454,14 +454,14 @@ class Mobject(object):
**kwargs
)
- def match_width(self, mobject):
- return self.match_dim(mobject, 0)
+ def match_width(self, mobject, **kwargs):
+ return self.match_dim(mobject, 0, **kwargs)
- def match_height(self, mobject):
- return self.match_dim(mobject, 1)
+ def match_height(self, mobject, **kwargs):
+ return self.match_dim(mobject, 1, **kwargs)
- def match_depth(self, mobject):
- return self.match_dim(mobject, 2)
+ def match_depth(self, mobject, **kwargs):
+ return self.match_dim(mobject, 2, **kwargs)
## Color functions