Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update documentation and typings for ParametricFunction #3703

Merged
merged 13 commits into from
Apr 19, 2024
6 changes: 3 additions & 3 deletions manim/mobject/graphing/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ParametricFunction(VMobject, metaclass=ConvertToOpenGL):
Parameters
----------
function
The function to be plotted in the form of ``(lambda x: x**2)``
The function to be plotted in the form of ``(lambda t: (x(t), y(t), z(t)))``
t_range
Determines the length that the function spans. By default ``[0, 1]``
scaling
Expand Down Expand Up @@ -97,8 +97,8 @@ def construct(self):

def __init__(
self,
function: Callable[[float, float], float],
t_range: Sequence[float] | None = None,
function: Callable[[float], Sequence[float] | np.ndarray],
t_range: Sequence[float] | np.ndarray | None = None,
xyzqm marked this conversation as resolved.
Show resolved Hide resolved
scaling: _ScaleBase = LinearBase(),
dt: float = 1e-8,
discontinuities: Iterable[float] | None = None,
Expand Down
Loading