diff --git a/examples/api/custom_scale_example.py b/examples/api/custom_scale_example.py index 703bed0519bd..6b3e3caba50b 100644 --- a/examples/api/custom_scale_example.py +++ b/examples/api/custom_scale_example.py @@ -110,7 +110,7 @@ def __init__(self, thresh): mtransforms.Transform.__init__(self) self.thresh = thresh - def transform(self, a): + def transform_non_affine(self, a): """ This transform takes an Nx1 ``numpy`` array and returns a transformed copy. Since the range of the Mercator scale @@ -144,7 +144,7 @@ def __init__(self, thresh): mtransforms.Transform.__init__(self) self.thresh = thresh - def transform(self, a): + def transform_non_affine(self, a): return np.arctan(np.sinh(a)) def inverted(self):