From 62d09832a0e421d841fa39fc62248fb91f495f56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davide=20Sandon=C3=A0?= Date: Sat, 16 Jul 2022 10:58:02 +0200 Subject: [PATCH] Fixed typo in docs animation api Found this doc typo thanks to this Stackoverflow question: https://stackoverflow.com/questions/73002265/wrong-axes-limits/73002556 One of the example was mixing the pyplot interface with the object oriented approach. This led to wrong axis limits. Fixed the typo to use the object oriented approach. --- doc/api/animation_api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/animation_api.rst b/doc/api/animation_api.rst index ddc5631c1b15..5a3d53442fde 100644 --- a/doc/api/animation_api.rst +++ b/doc/api/animation_api.rst @@ -111,7 +111,7 @@ artist at a global scope and let Python sort things out. For example :: fig, ax = plt.subplots() xdata, ydata = [], [] - ln, = plt.plot([], [], 'ro') + ln, = ax.plot([], [], 'ro') def init(): ax.set_xlim(0, 2*np.pi)