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

Skip to content

Commit 4b0fbb5

Browse files
committed
Doc improvements and line wrapping.
1 parent 930b117 commit 4b0fbb5

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

lib/matplotlib/lines.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,8 @@ def recache(self, always=False):
448448
def _transform_path(self, subslice=None):
449449
"""
450450
Puts a TransformedPath instance at self._transformed_path,
451-
all invalidation of the transform is then handled by the TransformedPath instance.
451+
all invalidation of the transform is then handled by the
452+
TransformedPath instance.
452453
"""
453454
# Masked arrays are now handled by the Path class itself
454455
if subslice is not None:

lib/matplotlib/patches.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,19 @@ def get_transform(self):
168168

169169
def get_data_transform(self):
170170
"""
171-
Return the :class:`~matplotlib.transforms.Transform` ... I'm not sure
171+
Return the :class:`~matplotlib.transforms.Transform` instance which
172+
maps data coordinates to physical coordinates.
172173
"""
173174
return artist.Artist.get_transform(self)
174175

175176
def get_patch_transform(self):
176177
"""
177-
Return the :class:`~matplotlib.transforms.Transform` ... I'm not sure
178+
Return the :class:`~matplotlib.transforms.Transform` instance which
179+
takes patch coordinates to data coordinates.
180+
181+
For example, one may define a patch of a circle which represents a
182+
radius of 5 by providing coordinates for a unit circle, and a
183+
transform which scales the coordinates (the patch coordinate) by 5.
178184
"""
179185
return transforms.IdentityTransform()
180186

0 commit comments

Comments
 (0)