From 28d319a82038b647f35db09402e7e4dcf7076551 Mon Sep 17 00:00:00 2001 From: Tiger Nie Date: Fri, 14 Oct 2022 18:27:26 -0500 Subject: [PATCH 1/2] added parent link for `FuncAnimation` and `ArtistAnimation` --- lib/matplotlib/animation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index b2eca10aae6f..f325f1a5bc43 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1426,7 +1426,8 @@ def _step(self, *args): class ArtistAnimation(TimedAnimation): """ - Animation using a fixed set of `.Artist` objects. + `TimedAnimation` subclass that creates an animation by using a fixed + set of `.Artist` objects. Before creating an instance, all plotting should have taken place and the relevant artists saved. @@ -1502,7 +1503,8 @@ def _draw_frame(self, artists): class FuncAnimation(TimedAnimation): """ - Makes an animation by repeatedly calling a function *func*. + `TimedAnimation` subclass that makes an animation by repeatedly calling + a function *func*. .. note:: From 0aa73a2770f7dcb4e51363490d415bb8be5ae355 Mon Sep 17 00:00:00 2001 From: Tiger Nie Date: Fri, 14 Oct 2022 18:32:28 -0500 Subject: [PATCH 2/2] fixed trailing white spaces in docstring --- lib/matplotlib/animation.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/animation.py b/lib/matplotlib/animation.py index f325f1a5bc43..428e00904277 100644 --- a/lib/matplotlib/animation.py +++ b/lib/matplotlib/animation.py @@ -1426,7 +1426,7 @@ def _step(self, *args): class ArtistAnimation(TimedAnimation): """ - `TimedAnimation` subclass that creates an animation by using a fixed + `TimedAnimation` subclass that creates an animation by using a fixed set of `.Artist` objects. Before creating an instance, all plotting should have taken place @@ -1503,7 +1503,7 @@ def _draw_frame(self, artists): class FuncAnimation(TimedAnimation): """ - `TimedAnimation` subclass that makes an animation by repeatedly calling + `TimedAnimation` subclass that makes an animation by repeatedly calling a function *func*. .. note:: 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