8000 Merge pull request #7766 from anntzer/fix-invalid-escapes · matplotlib/matplotlib@47126aa · GitHub
[go: up one dir, main page]

Skip to content

Commit 47126aa

Browse files
efiringQuLogic
authored andcommitted
Merge pull request #7766 from anntzer/fix-invalid-escapes
Invalid escape sequences are deprecated in Py3.6.
1 parent 98c374d commit 47126aa

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/matplotlib/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137

138138
__version__numpy__ = str('1.7.1') # minimum required numpy version
139139

140-
__bibtex__ = """@Article{Hunter:2007,
140+
__bibtex__ = r"""@Article{Hunter:2007,
141141
Author = {Hunter, J. D.},
142142
Title = {Matplotlib: A 2D graphics environment},
143143
Journal = {Computing In Science \& Engineering},
@@ -395,7 +395,7 @@ def checkdep_tex():
395395
stderr=subprocess.PIPE)
396396
stdout, stderr = s.communicate()
397397
line = stdout.decode('ascii').split('\n')[0]
398-
pattern = '3\.1\d+'
398+
pattern = r'3\.1\d+'
399399
match = re.search(pattern, line)
400400
v = match.group(0)
401401
return v

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6497,7 +6497,7 @@ def hist2d(self, x, y, bins=10, range=None, normed=False, weights=None,
64976497
def psd(self, x, NFFT=None, Fs=None, Fc=None, detrend=None,
64986498
window=None, noverlap=None, pad_to=None,
64996499
sides=None, scale_by_freq=None, return_line=None, **kwargs):
6500-
"""
6500+
r"""
65016501
Plot the power spectral density.
65026502
65036503
Call signature::

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,7 @@ def _single_spectrum_helper(x, mode, Fs=None, window=None, pad_to=None,
889889
@docstring.dedent_interpd
890890
def psd(x, NFFT=None, Fs=None, detrend=None, window=None,
891891
noverlap=None, pad_to=None, sides=None, scale_by_freq=None):
892-
"""
892+
r"""
893893
Compute the power spectral density.
894894
895895
Call signature::

0 commit comments

Comments
 (0)
0