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

Skip to content

Commit 34e9296

Browse files
committed
Merge pull request #2094 from mdboom/2to3-warnings-fix
Parsing errors when installing 1.3.0rc2
2 parents 3a3f28c + e3058a7 commit 34e9296

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

lib/matplotlib/artist.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1261,9 +1261,8 @@ def setp(obj, *args, **kwargs):
12611261
:func:`setp` works with the MATLAB style string/value pairs or
12621262
with python kwargs. For example, the following are equivalent::
12631263
1264-
>>> setp(lines, 'linewidth', 2, 'color', r') # MATLAB style
1265-
...
1266-
>>> setp(lines, linewidth=2, color='r') # python style
1264+
>>> setp(lines, 'linewidth', 2, 'color', 'r') # MATLAB style
1265+
>>> setp(lines, linewidth=2, color='r') # python style
12671266
"""
12681267

12691268
insp = ArtistInspector(obj)

lib/matplotlib/axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,8 +3343,8 @@ def text(self, x, y, s, fontdict=None,
33433343
text in the center of the axes::
33443344
33453345
>>> text(0.5, 0.5,'matplotlib', horizontalalignment='center',
3346-
>>> verticalalignment='center',
3347-
>>> transform = ax.transAxes)
3346+
... verticalalignment='center',
3347+
... transform=ax.transAxes)
33483348
33493349
You can put a rectangular box around the text instance (e.g., to
33503350
set a background color) by using the keyword *bbox*. *bbox* is

lib/matplotlib/backends/backend_agg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ def restore_region(self, region, bbox=None, xy=None):
320320
>>> region = renderer.copy_from_bbox()
321321
>>> x1, y1, x2, y2 = region.get_extents()
322322
>>> renderer.restore_region(region, bbox=(x1+dx, y1, x2, y2),
323-
xy=(x1-dx, y1))
323+
... xy=(x1-dx, y1))
324324
325325
"""
326326
if bbox is not None or xy is not None:

0 commit comments

Comments
 (0)