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

Skip to content

Commit 44a7d3d

Browse files
committed
axes.py: add comment describing separation of XY plots and polar plots
svn path=/trunk/matplotlib/; revision=6902
1 parent 3ad67bf commit 44a7d3d

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

lib/matplotlib/axes.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -594,11 +594,20 @@ def _set_lim_and_transforms(self):
594594
:class:`~matplotlib.transforms.Bbox` attributes and the
595595
*transScale*, *transData*, *transLimits* and *transAxes*
596596
transformations.
597+
598+
.. note::
599+
This method is primarily used by rectilinear projections
600+
of the :class:`~matplotlib.axes.Axes` class, and is meant
601+
to be overridden by new kinds of projection axes that need
602+
different transformations and limits. (See
603+
:class:`~matplotlib.projections.polar.PolarAxes` for an
604+
example.
597605
"""
598606
self.transAxes = mtransforms.BboxTransformTo(self.bbox)
599607

600-
# Transforms the x and y axis separately by a scale factor
608+
# Transforms the x and y axis separately by a scale factor.
601609
# It is assumed that this part will have non-linear components
610+
# (e.g. for a log scale).
602611
self.transScale = mtransforms.TransformWrapper(
603612
mtransforms.IdentityTransform())
604613

0 commit comments

Comments
 (0)