From c20179aa941e24d565f94184d3205e9c4e47c656 Mon Sep 17 00:00:00 2001 From: torfbolt Date: Sat, 23 Mar 2013 21:32:31 +0100 Subject: [PATCH] Fix issue #1844 in custom_scale_example.py --- examples/api/custom_scale_example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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):