Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 00307d9

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

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎examples/api/custom_scale_example.py

Copy file name to clipboardExpand all lines: examples/api/custom_scale_example.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.