Skip to content
Merged
Prev Previous commit
Doc improvements and line wrapping.
  • Loading branch information
pelson committed Aug 21, 2012
commit 4b0fbb526b524132cb574df0fb6232f34e254f14
3 changes: 2 additions & 1 deletion lib/matplotlib/lines.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,8 @@ def recache(self, always=False):
def _transform_path(self, subslice=None):
"""
Puts a TransformedPath instance at self._transformed_path,
all invalidation of the transform is then handled by the TransformedPath instance.
all invalidation of the transform is then handled by the
TransformedPath instance.
"""
# Masked arrays are now handled by the Path class itself
if subslice is not None:
Expand Down
10 changes: 8 additions & 2 deletions lib/matplotlib/patches.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,19 @@ def get_transform(self):

def get_data_transform(self):
"""
Return the :class:`~matplotlib.transforms.Transform` ... I'm not sure
Return the :class:`~matplotlib.transforms.Transform` instance which
maps data coordinates to physical coordinates.
"""
return artist.Artist.get_transform(self)

def get_patch_transform(self):
"""
Return the :class:`~matplotlib.transforms.Transform` ... I'm not sure
Return the :class:`~matplotlib.transforms.Transform` instance which
takes patch coordinates to data coordinates.

For example, one may define a patch of a circle which represents a
radius of 5 by providing coordinates for a unit circle, and a
transform which scales the coordinates (the patch coordinate) by 5.
"""
return transforms.IdentityTransform()

Expand Down