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

Skip to content

Commit fa5b1e1

Browse files
jklymaktacaswell
authored andcommitted
Merge pull request #11336 from timhoffm/raw-strings-for-docstrings-with-escape
Use raw string literals for docstrings with escapes Conflicts: lib/matplotlib/artist.py - reject py2 incompatible changes lib/matplotlib/axes/_axes.py - also backports some documentation changes
1 parent e5ce40b commit fa5b1e1

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

examples/shapes_and_collections/donut.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""
1+
r"""
22
=============
33
Mmh Donuts!!!
44
=============

lib/matplotlib/artist.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,12 +1069,11 @@ class ArtistInspector(object):
10691069
current values.
10701070
"""
10711071
def __init__(self, o):
1072-
"""
1073-
Initialize the artist inspector with an
1074-
:class:`~matplotlib.artist.Artist` or iterable of :class:`Artists`.
1075-
If an iterable is used, we assume it is a homogeneous sequence (all
1076-
:class:`Artists` are of the same type) and it is your responsibility
1077-
to make sure this is so.
1072+
r"""
1073+
Initialize the artist inspector with an `Artist` or an iterable of
1074+
`Artist`\s. If an iterable is used, we assume it is a homogeneous
1075+
sequence (all `Artists` are of the same type) and it is your
1076+
responsibility to make sure this is so.
10781077
"""
10791078
if not isinstance(o, Artist):
10801079
if cbook.iterable(o):

0 commit comments

Comments
 (0)