Skip to content

Commit 3bea829

Browse files
committed
Merge branch 'main' into max_arg
2 parents 3653d6c + 63b43eb commit 3bea829

File tree

7 files changed

+24
-42
lines changed

7 files changed

+24
-42
lines changed

manim/mobject/geometry/polygram.py

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ def construct(self):
6262
self.play(MoveAlongPath(dot, hexagram), run_time=5, rate_func=linear)
6363
self.remove(dot)
6464
self.wait()
65-
66-
6765
"""
6866

6967
def __init__(self, *vertex_groups: Iterable[Sequence[float]], color=BLUE, **kwargs):
@@ -143,9 +141,12 @@ def round_corners(self, radius: float = 0.5):
143141
radius
144142
The curvature of the corners of the :class:`Polygram`.
145143
144+
145+
.. seealso::
146+
:class:`.~RoundedRectangle`
147+
146148
Examples
147149
--------
148-
149150
.. manim:: PolygramRoundCorners
150151
:save_last_frame:
151152
@@ -159,10 +160,6 @@ def construct(self):
159160
160161
shapes.arrange(RIGHT)
161162
self.add(shapes)
162-
163-
See Also
164-
--------
165-
:class:`RoundedRectangle`
166163
"""
167164

168165
if radius == 0:
@@ -228,7 +225,6 @@ class Polygon(Polygram):
228225
229226
Examples
230227
--------
231-
232228
.. manim:: PolygonExample
233229
:save_last_frame:
234230
@@ -354,7 +350,6 @@ class RegularPolygon(RegularPolygram):
354350
355351
Examples
356352
--------
357-
358353
.. manim:: RegularPolygonExample
359354
:save_last_frame:
360355
@@ -488,7 +483,6 @@ class Triangle(RegularPolygon):
488483
489484
Examples
490485
--------
491-
492486
.. manim:: TriangleExample
493487
:save_last_frame:
494488
@@ -528,7 +522,6 @@ class Rectangle(Polygon):
528522
529523
Examples
530524
----------
531-
532525
.. manim:: RectangleExample
533526
:save_last_frame:
534527
@@ -600,7 +593,6 @@ class Square(Rectangle):
600593
601594
Examples
602595
--------
603-
604596
.. manim:: SquareExample
605597
:save_last_frame:
606598
@@ -629,7 +621,6 @@ class RoundedRectangle(Rectangle):
629621
630622
Examples
631623
--------
632-
633624
.. manim:: RoundedRectangleExample
634625
:save_last_frame:
635626
@@ -651,12 +642,6 @@ def __init__(self, corner_radius=0.5, **kwargs):
651642
class Cutout(VMobject, metaclass=ConvertToOpenGL):
652643
"""A shape with smaller cutouts.
653644
654-
.. warning::
655-
656-
Technically, this class behaves similar to a symmetric difference: if
657-
parts of the ``mobjects`` are not located within the ``main_shape``,
658-
these parts will be added to the resulting :class:`~.VMobject`.
659-
660645
Parameters
661646
----------
662647
main_shape : :class:`~.VMobject`
@@ -667,6 +652,12 @@ class Cutout(VMobject, metaclass=ConvertToOpenGL):
667652
Further keyword arguments that are passed to the constructor of
668653
:class:`~.VMobject`.
669654
655+
656+
.. warning::
657+
Technically, this class behaves similar to a symmetric difference: if
658+
parts of the ``mobjects`` are not located within the ``main_shape``,
659+
these parts will be added to the resulting :class:`~.VMobject`.
660+
670661
Examples
671662
--------
672663
.. manim:: CutoutExample

manim/mobject/geometry/shape_matchers.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class SurroundingRectangle(RoundedRectangle):
1818
1919
Examples
2020
--------
21-
2221
.. manim:: SurroundingRectExample
2322
:save_last_frame:
2423
@@ -58,7 +57,6 @@ class BackgroundRectangle(SurroundingRectangle):
5857
5958
Examples
6059
--------
61-
6260
.. manim:: ExampleBackgroundRectangle
6361
:save_last_frame:
6462

manim/mobject/geometry/tips.py

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,13 @@
2323
class ArrowTip(VMobject, metaclass=ConvertToOpenGL):
2424
r"""Base class for arrow tips.
2525
26-
See Also
27-
--------
28-
:class:`ArrowTriangleTip`
29-
:class:`ArrowTriangleFilledTip`
30-
:class:`ArrowCircleTip`
31-
:class:`ArrowCircleFilledTip`
32-
:class:`ArrowSquareTip`
33-
:class:`ArrowSquareFilledTip`
26+
.. seealso::
27+
:class:`ArrowTriangleTip`
28+
:class:`ArrowTriangleFilledTip`
29+
:class:`ArrowCircleTip`
30+
:class:`ArrowCircleFilledTip`
31+
:class:`ArrowSquareTip`
32+
:class:`ArrowSquareFilledTip`
3433
3534
Examples
3635
--------

manim/mobject/graphing/functions.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ class ParametricFunction(VMobject, metaclass=ConvertToOpenGL):
3939
4040
Examples
4141
--------
42-
4342
.. manim:: PlotParametricFunction
4443
:save_last_frame:
4544

manim/mobject/graphing/number_line.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,13 @@ class NumberLine(Line):
7171
kwargs
7272
Additional arguments to be passed to :class:`~.Line`.
7373
74+
75+
.. note::
76+
77+
Number ranges that include both negative and positive values will be generated
78+
from the 0 point, and may not include a tick at the min / max
79+
values as the tick locations are dependent on the step size.
80+
7481
Examples
7582
--------
7683
.. manim:: NumberLineExample
@@ -113,12 +120,6 @@ def construct(self):
113120
114121
line_group = VGroup(l0, l1, l2, l3).arrange(DOWN, buff=1)
115122
self.add(line_group)
116-
117-
.. note::
118-
119-
Number ranges that include both negative and positive values will be generated
120-
from the 0 point, and may not include a tick at the min / max
121-
values as the tick locations are dependent on the step size.
122123
"""
123124

124125
def __init__(
@@ -465,7 +466,6 @@ def add_numbers(
465466
The :class:`~.VMobject` class that will be used to construct the label.
466467
Defaults to the ``label_constructor`` attribute of the number line
467468
if not specified.
468-
469469
"""
470470
if x_values is None:
471471
x_values = self.get_tick_range()

manim/mobject/graphing/probability.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ class SampleSpace(Rectangle):
3838
3939
Examples
4040
--------
41-
4241
.. manim:: ExampleSampleSpace
4342
:save_last_frame:
4443
@@ -398,7 +397,6 @@ def construct(self):
398397
)
399398
400399
self.add(chart, c_bar_lbls)
401-
402400
"""
403401

404402
bar_labels = VGroup()
@@ -429,7 +427,6 @@ def change_bar_values(self, values: Iterable[float]):
429427
430428
Examples
431429
--------
432-
433430
.. manim:: ChangeBarValuesExample
434431
:save_last_frame:
435432

manim/mobject/graphing/scale.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def __init__(self, base: float = 10, custom_labels: bool = True):
126126
127127
Examples
128128
--------
129-
130129
.. code-block:: python
131130
132131
func = ParametricFunction(lambda x: x, scaling=LogBase(base=2))
@@ -159,7 +158,6 @@ def get_custom_labels(
159158
160159
Parameters
161160
----------
162-
163161
val_range
164162
The iterable of values used to create the labels. Determines the exponent.
165163
unit_decimal_places

0 commit comments

Comments
 (0)