Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 62d0983

Browse files
committed
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.
1 parent 37ccdca commit 62d0983

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/animation_api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ artist at a global scope and let Python sort things out. For example ::
111111

112112
fig, ax = plt.subplots()
113113
xdata, ydata = [], []
114-
ln, = plt.plot([], [], 'ro')
114+
ln, = ax.plot([], [], 'ro')
115115

116116
def init():
117117
ax.set_xlim(0, 2*np.pi)

0 commit comments

Comments
 (0)