From e3058a749de5d8c9d25197fcf820d2dfa20ceffa Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Thu, 30 May 2013 09:57:02 -0400 Subject: [PATCH] Fix 2to3 warnings during build --- lib/matplotlib/artist.py | 5 ++--- lib/matplotlib/axes.py | 4 ++-- lib/matplotlib/backends/backend_agg.py | 2 +- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/matplotlib/artist.py b/lib/matplotlib/artist.py index d349d616e859..2e06d200bc13 100644 --- a/lib/matplotlib/artist.py +++ b/lib/matplotlib/artist.py @@ -1261,9 +1261,8 @@ def setp(obj, *args, **kwargs): :func:`setp` works with the MATLAB style string/value pairs or with python kwargs. For example, the following are equivalent:: - >>> setp(lines, 'linewidth', 2, 'color', r') # MATLAB style - ... - >>> setp(lines, linewidth=2, color='r') # python style + >>> setp(lines, 'linewidth', 2, 'color', 'r') # MATLAB style + >>> setp(lines, linewidth=2, color='r') # python style """ insp = ArtistInspector(obj) diff --git a/lib/matplotlib/axes.py b/lib/matplotlib/axes.py index 1980e5e9e20c..15b0864f6da8 100644 --- a/lib/matplotlib/axes.py +++ b/lib/matplotlib/axes.py @@ -3343,8 +3343,8 @@ def text(self, x, y, s, fontdict=None, text in the center of the axes:: >>> text(0.5, 0.5,'matplotlib', horizontalalignment='center', - >>> verticalalignment='center', - >>> transform = ax.transAxes) + ... verticalalignment='center', + ... transform=ax.transAxes) You can put a rectangular box around the text instance (e.g., to set a background color) by using the keyword *bbox*. *bbox* is diff --git a/lib/matplotlib/backends/backend_agg.py b/lib/matplotlib/backends/backend_agg.py index 8f072d53f8de..c394794b7e1c 100644 --- a/lib/matplotlib/backends/backend_agg.py +++ b/lib/matplotlib/backends/backend_agg.py @@ -320,7 +320,7 @@ def restore_region(self, region, bbox=None, xy=None): >>> region = renderer.copy_from_bbox() >>> x1, y1, x2, y2 = region.get_extents() >>> renderer.restore_region(region, bbox=(x1+dx, y1, x2, y2), - xy=(x1-dx, y1)) + ... xy=(x1-dx, y1)) """ if bbox is not None or xy is not None: