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

Skip to content

Commit 4c72495

Browse files
authored
Update blitting.py
1 parent 4723dab commit 4c72495

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tutorials/advanced/blitting.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
no need to re-draw all of the ticks and tick-labels (particularly
1717
because text is one of the more expensive things to render).
1818
19-
The procedure to save our work is roughly:
19+
The procedure to save our work is rough:
2020
2121
- draw the figure, but exclude any artists marked as 'animated'
2222
- save a copy of the RBGA buffer
@@ -89,7 +89,7 @@
8989
ln.set_ydata(np.sin(x + (j / 100) * np.pi))
9090
# re-render the artist, updating the canvas state, but not the screen
9191
ax.draw_artist(ln)
92-
# copy the image to the GUI state, but screen might not changed yet
92+
# copy the image to the GUI state, but screen might not be changed yet
9393
fig.canvas.blit(fig.bbox)
9494
# flush any pending GUI events, re-painting the screen if needed
9595
fig.canvas.flush_events()
@@ -216,7 +216,7 @@ def update(self):
216216
# update the artists
217217
ln.set_ydata(np.sin(x + (j / 100) * np.pi))
218218
fr_number.set_text("frame: {j}".format(j=j))
219-
# tell the blitting manager to do it's thing
219+
# tell the blitting manager to do its thing
220220
bm.update()
221221

222222
###############################################################################

0 commit comments

Comments
 (0)