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 e8e2ca4

Browse filesBrowse files
Fixes custom scale example, see #5522
Added the property has_inverse = True to the custom scale example so that if axhline is later called on this axis an error is not produced.
1 parent 9413188 commit e8e2ca4
Copy full SHA for e8e2ca4

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

+2
-1
lines changed

‎examples/api/custom_scale_example.py

Copy file name to clipboardExpand all lines: examples/api/custom_scale_example.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class MercatorLatitudeTransform(mtransforms.Transform):
103103
input_dims = 1
104104
output_dims = 1
105105
is_separable = True
106-
106+
has_inverse = True
107107
def __init__(self, thresh):
108108
mtransforms.Transform.__init__(self)
109109
self.thresh = thresh
@@ -138,6 +138,7 @@ class InvertedMercatorLatitudeTransform(mtransforms.Transform):
138138
input_dims = 1
139139
output_dims = 1
140140
is_separable = True
141+
has_inverse = True
141142

142143
def __init__(self, thresh):
143144
mtransforms.Transform.__init__(self)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.