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

Skip to content

Commit 8807716

Browse files
committed
Clean up docstring of restore_region().
svn path=/trunk/matplotlib/; revision=8489
1 parent 28c13d3 commit 8807716

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/backends/backend_agg.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -269,11 +269,11 @@ def option_scale_image(self):
269269

270270
def restore_region(self, region, bbox=None, xy=None):
271271
"""
272-
restore the saved region. if bbox (instance of BboxBase, or
272+
Restore the saved region. If bbox (instance of BboxBase, or
273273
its extents) is given, only the region specified by the bbox
274274
will be restored. *xy* (a tuple of two floasts) optionally
275-
specify the new position (of the LLC of the originally region,
276-
not the LLC of the bbox) that the region will be restored.
275+
specifies the new position (the LLC of the original region,
276+
not the LLC of the bbox) where the region will be restored.
277277
278278
>>> region = renderer.copy_from_bbox()
279279
>>> x1, y1, x2, y2 = region.get_extents()
@@ -445,4 +445,3 @@ def print_png(self, filename_or_obj, *args, **kwargs):
445445
renderer.width, renderer.height,
446446
filename_or_obj, self.figure.dpi)
447447
renderer.dpi = original_dpi
448-

0 commit comments

Comments
 (0)