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 0c54bee

Browse filesBrowse files
authored
Merge pull request #7766 from anntzer/fix-invalid-escapes
Invalid escape sequences are deprecated in Py3.6.
2 parents eba130f + 9f2af68 commit 0c54bee
Copy full SHA for 0c54bee

File tree

Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

3 files changed

+4
-4
lines changed
Open diff view settings
Collapse file

‎lib/matplotlib/__init__.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141

142142
__version__numpy__ = str('1.7.1') # minimum required numpy version
143143

144-
__bibtex__ = """@Article{Hunter:2007,
144+
__bibtex__ = r"""@Article{Hunter:2007,
145145
Author = {Hunter, J. D.},
146146
Title = {Matplotlib: A 2D graphics environment},
147147
Journal = {Computing In Science \& Engineering},
@@ -398,7 +398,7 @@ def checkdep_tex():
398398
stderr=subprocess.PIPE)
399399
stdout, stderr = s.communicate()
400400
line = stdout.decode('ascii').split('\n')[0]
401-
pattern = '3\.1\d+'
401+
pattern = r'3\.1\d+'
402402
match = re.search(pattern, line)
403403
v = match.group(0)
404404
return v
Collapse file

‎lib/matplotlib/axes/_axes.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/axes/_axes.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6503,7 +6503,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
65036503
def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
65046504
window=None, noverlap=None, pad_to=None,
65056505
sides=None, scale_by_freq=None, return_line=None, **kwargs):
6506-
"""
6506+
r"""
65076507
Plot the power spectral density.
65086508
65096509
Call signature::
Collapse file

‎lib/matplotlib/mlab.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/mlab.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,7 +887,7 @@ def _single_spectrum_helper(x, mode, Fs=None, window=None, pad_to=None,
887887
@docstring.dedent_interpd
888888
def psd(x, NFFT=None, Fs=None, detrend=None, window=None,
889889
noverlap=None, pad_to=None, sides=None, scale_by_freq=None):
890-
"""
890+
r"""
891891
Compute the power spectral density.
892892
893893
Call signature::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.