Logo Search packages:      
Sourcecode: matplotlib version File versions

def custom_scale_example::MercatorLatitudeScale::limit_range_for_scale (   self,
  vmin,
  vmax,
  minpos 
)

Override to limit the bounds of the axis to the domain of the
transform.  In the case of Mercator, the bounds should be
limited to the threshold that was passed in.  Unlike the
autoscaling provided by the tick locators, this range limiting
will always be adhered to, whether the axis range is set
manually, determined automatically or changed through panning
and zooming.

Definition at line 78 of file custom_scale_example.py.

00078                                                        :
        """
        Override to limit the bounds of the axis to the domain of the
        transform.  In the case of Mercator, the bounds should be
        limited to the threshold that was passed in.  Unlike the
        autoscaling provided by the tick locators, this range limiting
        will always be adhered to, whether the axis range is set
        manually, determined automatically or changed through panning
        and zooming.
        """
        return max(vmin, -self.thresh), min(vmax, self.thresh)

    class MercatorLatitudeTransform(mtransforms.Transform):


Generated by  Doxygen 1.6.0   Back to index