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: Format degrees as an integer
code: def _format_degrees(self, deg):
      """Format degrees as an integer"""
      if self._dms:
          deg = int(deg)
          number_format = "d"
      else:
          number_format = self._degrees_number_format
      value = f"{abs(deg):{number_format}}{self._degree_symbol}"
      if self._decimal_point is not None:
          value = value.replace(".", self._decimal_point)
      return value
  
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 7 for calling the _PlateCarreeFormatter obj's underlying member method code with example usage: obj._format_degrees(deg) and returns: value