'Set the coordinate type for the axis.
Parameters
coord_type : str
One of \'longitude\', \'latitude\' or \'scalar\'
coord_wrap : float, optional
The value to wrap at for angular coordinates'

def set_coord_type(self, coord_type, coord_wrap=None):

    self.coord_type = coord_type
    if ((coord_type == 'longitude') and (coord_wrap is None)):
        self.coord_wrap = 360
    elif ((coord_type != 'longitude') and (coord_wrap is not None)):
        raise NotImplementedError('coord_wrap    is    not    yet    supported    for    non-longitude    coordinates')
    else:
        self.coord_wrap = coord_wrap
    if (coord_type == 'scalar'):
        self._coord_unit_scale = None
        self._formatter_locator = ScalarFormatterLocator(unit=self.coord_unit)
    elif (coord_type in ['longitude', 'latitude']):
        if (self.coord_unit is u.deg):
            self._coord_unit_scale = None
        else:
            self._coord_unit_scale = self.coord_unit.to(u.deg)
        self._formatter_locator = AngleFormatterLocator()
    else:
        raise ValueError("coord_type    should    be    one    of    'scalar',    'longitude',    or    'latitude'")
