def __init__(self, *args, **kwargs): """Initialization is identical to a normal Axes object except for the following kwarg: Parameters ----------- rotation : number The rotation of the stereonet in degrees clockwise from North. center_latitude : number The center latitude of the stereonet in degrees. center_longitude : number The center longitude of the stereonet in degrees. All additional args and kwargs are identical to Axes.__init__ """ self.horizon = np.radians(90) self._rotation = -np.radians(kwargs.pop('rotation', 0)) y0 = kwargs.get('center_latitude', self._default_center_lat) x0 = kwargs.get('center_longitude', self._default_center_lon) kwargs['center_latitude'] = y0 kwargs['center_longitude'] = x0 self._overlay_axes = None LambertAxes.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): """Initialization is identical to a normal Axes object except for the following kwarg: Parameters ----------- rotation : number The rotation of the stereonet in degrees clockwise from North. center_latitude : number The center latitude of the stereonet in degrees. center_longitude : number The center longitude of the stereonet in degrees. All additional args and kwargs are identical to Axes.__init__ """ self.horizon = np.radians(90) self._rotation = -np.radians(kwargs.pop('rotation', 0)) y0 = kwargs.get('center_latitude', self._default_center_lat) x0 = kwargs.get('center_longitude', self._default_center_lon) kwargs['center_latitude'] = y0 kwargs['center_longitude'] = x0 self._overlay_axes = None LambertAxes.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): """Initialization is identical to a normal Axes object except for the following kwarg: Parameters ----------- rotation : number The rotation of the stereonet in degrees clockwise from North. All additional args and kwargs are identical to Axes.__init__ """ # There's also center_latitude and center_longitude, but I'm # deliberately keeping these undocumented until they're fully supported. self.horizon = np.radians(90) self._rotation = -np.radians(kwargs.pop('rotation', 0)) LambertAxes.__init__(self, *args, **kwargs)
def __init__(self, *args, **kwargs): """Initialization is identical to a normal Axes object except for the following kwarg: Parameters: ----------- rotation : number The rotation of the stereonet in degrees clockwise from North. All additional args and kwargs are identical to Axes.__init__ """ # There's also center_latitude and center_longitude, but I'm # deliberately keeping these undocumented until they're fully supported. self.horizon = np.radians(90) self._rotation = -np.radians(kwargs.pop('rotation', 0)) LambertAxes.__init__(self, *args, **kwargs)