class_docstr: Scales data in range -pi/2 to pi/2 (-90 to 90 degrees) using
  the system used to scale latitudes in a Mercator__ projection.
  
  The scale function:
    ln(tan(y) + sec(y))
  
  The inverse scale function:
    atan(sinh(y))
  
  Since the Mercator scale tends to infinity at +/- 90 degrees,
  there is user-defined threshold, above and below which nothing
  will be plotted.  This defaults to +/- 85 degrees.
  
  __ https://en.wikipedia.org/wiki/Mercator_projection
docstr: 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.
docstr_tok: ["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","."]
code: def 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.
      """
      return max(vmin, -self.thresh), min(vmax, self.thresh)
  
file_path: matplotlib/galleries/examples/scales/custom_scale.py
imports: import numpy
  from numpy import ma
  from matplotlib import scale
  from matplotlib import transforms
  from matplotlib.ticker import FixedLocator, FuncFormatter
label_desc: Use image node_id 4 for calling the MercatorLatitudeScale obj's underlying member method code with example usage: obj.limit_range_for_scale(vmin, vmax, minpos) and returns: max,  min