82f4176543845a0c3ad86f548981f23af0daa7d5,lib/matplotlib/projections/geo.py,InvertedLambertTransform,transform_non_affine,#InvertedLambertTransform#Any#,475
Before Change
def transform_non_affine(self, xy):
// docstring inherited
x = xy[:, 0:1]
y = xy[:, 1:2]
clong = self._center_longitude
clat = self._center_latitude
p = np.maximum(np.hypot(x, y), 1e-9)
c = 2 * np.arcsin(0.5 * p)
sin_c = np.sin(c)
cos_c = np.cos(c)
lat = np.arcsin(cos_c*np.sin(clat) +
((y*sin_c*np.cos(clat)) / p))
lon = clong + np.arctan(
(x*sin_c) / (p*np.cos(clat)*cos_c - y*np.sin(clat)*sin_c))
return np.concatenate((lon, lat), 1)
def inverted(self):
// docstring inherited
return LambertAxes.LambertTransform(
After Change
longitude = clong + np.arctan(
(x*sin_c) / (p*np.cos(clat)*cos_c - y*np.sin(clat)*sin_c))
return np.column_stack([longitude, latitude])
def inverted(self):
// docstring inherited
return LambertAxes.LambertTransform(
In pattern: SUPERPATTERN
Frequency: 6
Non-data size: 12
Instances
Project Name: matplotlib/matplotlib
Commit Name: 82f4176543845a0c3ad86f548981f23af0daa7d5
Time: 2019-06-04
Author: bsipocz@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: InvertedLambertTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: af89a6a40dd017223cd2e8c3eec1069c95390691
Time: 2019-05-25
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: InvertedMollweideTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: 82f4176543845a0c3ad86f548981f23af0daa7d5
Time: 2019-06-04
Author: bsipocz@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: InvertedLambertTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: 8c7fab7cf13506caee8ffeb3e2dacbac9f44b64e
Time: 2018-03-03
Author: anntzer.lee@gmail.com
File Name: examples/api/custom_projection_example.py
Class Name: HammerTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: f021e0d57a4df8deb80cf5fd168d336f3dbfcbc6
Time: 2019-07-17
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/projections/polar.py
Class Name: InvertedPolarTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: af89a6a40dd017223cd2e8c3eec1069c95390691
Time: 2019-05-25
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: LambertTransform
Method Name: transform_non_affine
Project Name: matplotlib/matplotlib
Commit Name: af89a6a40dd017223cd2e8c3eec1069c95390691
Time: 2019-05-25
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/projections/geo.py
Class Name: HammerTransform
Method Name: transform_non_affine