File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,8 @@ def set_functions(self, functions):
222
222
'must be a two-tuple of callable functions '
223
223
'with the first function being the transform '
224
224
'and the second being the inverse' )
225
- set_scale (defscale , functions = self ._functions )
225
+ # need to invert the roles here for the ticks to line up.
226
+ set_scale (defscale , functions = self ._functions [::- 1 ])
226
227
227
228
def draw (self , renderer = None , inframe = False ):
228
229
"""
@@ -262,7 +263,8 @@ def _set_scale(self):
262
263
if self ._ticks_set :
263
264
ticks = self ._axis .get_ticklocs ()
264
265
265
- set_scale (defscale , functions = self ._functions )
266
+ # need to invert the roles here for the ticks to line up.
267
+ set_scale (defscale , functions = self ._functions [::- 1 ])
266
268
267
269
# OK, set_scale sets the locators, but if we've called
268
270
# axsecond.set_ticks, we want to keep those.
You can’t perform that action at this time.
0 commit comments