Match the width with the width of another :class:`~.Mobject`.
(self, mobject: Mobject, **kwargs)
| 2374 | return self.rescale_to_fit(mobject.length_over_dim(dim), dim, **kwargs) |
| 2375 | |
| 2376 | def match_width(self, mobject: Mobject, **kwargs) -> Self: |
| 2377 | """Match the width with the width of another :class:`~.Mobject`.""" |
| 2378 | return self.match_dim_size(mobject, 0, **kwargs) |
| 2379 | |
| 2380 | def match_height(self, mobject: Mobject, **kwargs) -> Self: |
| 2381 | """Match the height with the height of another :class:`~.Mobject`.""" |