class_docstr: When there is a cycle, e.g., longitude goes from 0-360.
class_docstr_tok: ["When","there","is","a","cycle",",","e.g.",",","longitude","goes","from","0-360","."]
code: def _adjust_extremes(self, lon_min, lon_max, lat_min, lat_max):
      lon_min, lon_max, lat_min, lat_max = self._add_pad(
          lon_min, lon_max, lat_min, lat_max
      )
  
      # check cycle
      if self.lon_cycle:
          lon_max = min(lon_max, lon_min + self.lon_cycle)
      if self.lat_cycle:
          lat_max = min(lat_max, lat_min + self.lat_cycle)
  
      if self.lon_minmax is not None:
          min0 = self.lon_minmax[0]
          lon_min = max(min0, lon_min)
          max0 = self.lon_minmax[1]
          lon_max = min(max0, lon_max)
  
      if self.lat_minmax is not None:
          min0 = self.lat_minmax[0]
          lat_min = max(min0, lat_min)
          max0 = self.lat_minmax[1]
          lat_max = min(max0, lat_max)
  
      return lon_min, lon_max, lat_min, lat_max
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import six
  import numpy
  import math
  from mpl_toolkits.axisartist.grid_finder import ExtremeFinderSimple
label_desc: Use image node_id 3 for calling the ExtremeFinderCycle obj's underlying member method code with example usage: obj._adjust_extremes(lon_min, lon_max, lat_min, lat_max) and returns: lon_min,  lon_max,  lat_min,  lat_max