Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0bd9693

Browse filesBrowse files
committed
Tiny docs/comments cleanups.
1 parent 886983d commit 0bd9693
Copy full SHA for 0bd9693

File tree

Expand file treeCollapse file tree

2 files changed

+6
-7
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+6
-7
lines changed

‎examples/user_interfaces/svg_histogram_sgskip.py

Copy file name to clipboardExpand all lines: examples/user_interfaces/svg_histogram_sgskip.py
+2-3Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/image.py
+4-4Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.