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

Skip to content

Commit 623fe4d

Browse files
committed
Fix typos
1 parent ccf1994 commit 623fe4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

doc/release/next_whats_new/pyplot-register-figure.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ reset to `.FigureCanvasBase` when the figure is closed. `.Figure.savefig` uses
5050
the current canvas to save the figure (if possible). Since `.FigureCanvasBase`
5151
can not render the figure, when saving the figure, it will fallback to a suitable
5252
canvas subclass, e.g. `.FigureCanvasAgg` for raster outputs such as png.
53-
Any Agg-based backend will create the same file output, however
54-
There may be slight differences for non-Agg backends; e.g. if you use "GTK4Cairo" as
53+
Any Agg-based backend will create the same file output. However, there may be
54+
slight differences for non-Agg backends; e.g. if you use "GTK4Cairo" as
5555
interactive backend, ``fig.savefig("file.png")`` may create a slightly different
5656
image depending on whether the figure is registered with pyplot or not. In
5757
general, you should not store a reference to the canvas, but rather always

lib/matplotlib/tests/test_backends_interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ def check_alt_backend(alt_backend):
227227
# Ensure that the window is really closed.
228228
plt.pause(0.5)
229229

230-
# When the figure is closed, it's manager is removed and the canvas is reset to
230+
# When the figure is closed, its manager is removed and the canvas is reset to
231231
# FigureCanvasBase. Saving should still be possible.
232232
assert type(fig.canvas) == FigureCanvasBase, str(fig.canvas)
233233
result_after = io.BytesIO()

0 commit comments

Comments
 (0)