class_docstr: Base class for formatting ticks on geographical axes using a
  rectangular projection (e.g. Plate Carree, Mercator).
class_docstr_tok: ["Base","class","for","formatting","ticks","on","geographical","axes","using","a","rectangular","projection","(","e.g",".","Plate","Carree",",","Mercator",")","."]
docstr: Base class for simpler implementation of specialised formatters
  for latitude and longitude axes.
code: def __init__(
      self,
      direction_label=True,
      degree_symbol="°",
      number_format="g",
      transform_precision=1e-8,
      dms=False,
      minute_symbol="′",
      second_symbol="″",
      seconds_number_format="g",
      auto_hide=True,
      decimal_point=None,
      cardinal_labels=None,
  ):
      """
      Base class for simpler implementation of specialised formatters
      for latitude and longitude axes.
  
      """
      self._direction_labels = direction_label
      self._degree_symbol = degree_symbol
      self._degrees_number_format = number_format
      self._transform_precision = transform_precision
      self._dms = dms
      self._minute_symbol = minute_symbol
      self._second_symbol = second_symbol
      self._seconds_num_format = seconds_number_format
      self._auto_hide = auto_hide
      self._auto_hide_degrees = False
      self._auto_hide_minutes = False
      self._precision = 5  # locator precision
      if (
          decimal_point is None
          and mpl.rcParams["axes.formatter.use_locale"]
      ):
          import locale
  
          decimal_point = locale.localeconv()["decimal_point"]
      if cardinal_labels is None:
          cardinal_labels = {}
      self._cardinal_labels = cardinal_labels
      self._decimal_point = decimal_point
      self._source_projection = None
      self._target_projection = None
  
imports: import matplotlib
  from matplotlib.ticker import Formatter, MaxNLocator
  import numpy
  import cartopy.crs
  from cartopy.mpl.geoaxes import GeoAxes
label_desc: Use image node_id 1 to create a new _PlateCarreeFormatter object from inherited base classes: Formatter with example: obj = _PlateCarreeFormatter(direction_label, degree_symbol, number_format, transform_precision, dms, minute_symbol, second_symbol, seconds_number_format, auto_hide, decimal_point, cardinal_labels)