Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 00307d9

Browse files
torfboltpelson
authored andcommitted
Fix issue matplotlib#1844 in custom_scale_example.py
1 parent ebe0118 commit 00307d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/api/custom_scale_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def __init__(self, thresh):
110110
mtransforms.Transform.__init__(self)
111111
self.thresh = thresh
112112

113-
def transform(self, a):
113+
def transform_non_affine(self, a):
114114
"""
115115
This transform takes an Nx1 ``numpy`` array and returns a
116116
transformed copy. Since the range of the Mercator scale
@@ -144,7 +144,7 @@ def __init__(self, thresh):
144144
mtransforms.Transform.__init__(self)
145145
self.thresh = thresh
146146

147-
def transform(self, a):
147+
def transform_non_affine(self, a):
148148
return np.arctan(np.sinh(a))
149149

150150
def inverted(self):

0 commit comments

Comments
 (0)