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

Skip to content

Commit 8937aa5

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #14784: Tiny docs/comments cleanups.
1 parent 9a5473d commit 8937aa5

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

examples/user_interfaces/svg_histogram_sgskip.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,8 @@
4343

4444
plt.rcParams['svg.fonttype'] = 'none'
4545

46-
# Apparently, this `register_namespace` method works only with
47-
# python 2.7 and up and is necessary to avoid garbling the XML name
48-
# space with ns0.
46+
# Apparently, this `register_namespace` method is necessary to avoid garbling
47+
# the XML namespace with ns0.
4948
ET.register_namespace("", "http://www.w3.org/2000/svg")
5049

5150
# Fixing random state for reproducibility

lib/matplotlib/image.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,8 +1359,8 @@ def imread(fname, format=None):
13591359
Parameters
13601360
----------
13611361
fname : str or file-like
1362-
The image file to read. This can be a filename, a URL or a Python
1363-
file-like object opened in read-binary mode.
1362+
The image file to read: a filename, a URL or a file-like object opened
1363+
in read-binary mode.
13641364
format : str, optional
13651365
The image file format assumed for reading the data. If not
13661366
given, the format is deduced from the filename. If nothing can
@@ -1443,8 +1443,8 @@ def imsave(fname, arr, vmin=None, vmax=None, cmap=None, format=None,
14431443
14441444
Parameters
14451445
----------
1446-
fname : str or PathLike file-like
1447-
A path or a Python file-like object to store the image in.
1446+
fname : str or PathLike or file-like
1447+
A path or a file-like object to store the image in.
14481448
If *format* is not set, then the output format is inferred from the
14491449
extension of *fname*, if any, and from :rc:`savefig.format` otherwise.
14501450
If *format* is set, it determines the output format.

0 commit comments

Comments
 (0)