Skip to content

Commit a683f4e

Browse files
committed
Change Square to Rectangle
1 parent d915b89 commit a683f4e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

manim/mobject/mobject.py

+5-6
Original file line numberDiff line numberDiff line change
@@ -2731,14 +2731,13 @@ def align_data(self, mobject: Mobject, skip_point_alignment: bool = False) -> No
27312731
--------
27322732
::
27332733
2734-
>>> from manim import Square, Star, VGroup, Line, ORIGIN, RIGHT
2735-
>>> sq = Square()
2736-
>>> sq.add(VGroup(Star()))
2734+
>>> from manim import Rectangle, Line, ORIGIN, RIGHT
2735+
>>> rect = Rectangle(width=4.0, height=2.0, grid_xstep=1.0, grid_ystep=0.5)
27372736
>>> line = Line(start=ORIGIN,end=RIGHT)
2738-
>>> line.align_data(sq)
2739-
>>> len(line.get_family()) == len(sq.get_family())
2737+
>>> line.align_data(rect)
2738+
>>> len(line.get_family()) == len(rect.get_family())
27402739
True
2741-
>>> line.get_num_points() == sq.get_num_points()
2740+
>>> line.get_num_points() == rect.get_num_points()
27422741
True
27432742
27442743
See also

0 commit comments

Comments
 (0)