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

Skip to content

Commit 0bd9693

Browse files
committed
Tiny docs/comments cleanups.
1 parent 886983d commit 0bd9693

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
@@ -1330,8 +1330,8 @@ def imread(fname, format=None):
13301330
Parameters
13311331
----------
13321332
fname : str or file-like
1333-
The image file to read. This can be a filename, a URL or a Python
1334-
file-like object opened in read-binary mode.
1333+
The image file to read: a filename, a URL or a file-like object opened
1334+
in read-binary mode.
13351335
format : str, optional
13361336
The image file format assumed for reading the data. If not
13371337
given, the format is deduced from the filename. If nothing can
@@ -1422,8 +1422,8 @@ def imsave(fname, arr, vmin=None, vmax=None, cmap=None, format=None,
14221422
14231423
Parameters
14241424
----------
1425-
fname : str or PathLike file-like
1426-
A path or a Python file-like object to store the image in.
1425+
fname : str or PathLike or file-like
1426+
A path or a file-like object to store the image in.
14271427
If *format* is not set, then the output format is inferred from the
14281428
extension of *fname*, if any, and from :rc:`savefig.format` otherwise.
14291429
If *format* is set, it determines the output format.

0 commit comments

Comments
 (0)