diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index b2eca10aae6f..dd07304e3901 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1518,7 +1518,8 @@ class FuncAnimation(TimedAnimation): func : callable The function to call at each frame. The first argument will be the next value in *frames*. Any additional positional - arguments can be supplied via the *fargs* parameter. + arguments can be supplied via the *fargs* parameter. See *fargs* for + how to use `functools.partial` to supply keyword arguments. The required signature is:: @@ -1564,6 +1565,14 @@ def init_func() -> iterable_of_artists fargs : tuple or None, optional Additional arguments to pass to each call to *func*. + An option to *fargs* is to use `functools.partial`, with the added + benefit of also supporting keyword arguments. An example is to pass + something like:: + + partial(func, **kwargs) + + as *func*. + save_count : int, default: 100 Fallback for the number of values from *frames* to cache. This is only used if the number of frames cannot be inferred from *frames*, pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy