8000 Fixes custom scale example, see #5522 · matplotlib/matplotlib@e8e2ca4 · GitHub
[go: up one dir, main page]

Skip to content

Commit e8e2ca4

Browse 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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/api/custom_scale_example.py

Lines 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