File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Filter options
Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
Original file line number Diff line number Diff line change @@ -176,13 +176,12 @@ def get_tick_padding(self):
176
176
"""
177
177
Get the length of the tick outside of the axes.
178
178
"""
179
- tickdir = self ._tickdir
180
- if tickdir == 'in' :
181
- return 0.0
182
- elif tickdir == 'inout' :
183
- return self ._size / 2
184
- elif tickdir == 'out' :
185
- return self ._size
179
+ padding = {
180
+ 'in' : 0.0 ,
181
+ 'inout' : 0.5 ,
182
+ 'out' : 1.0
183
+ }
184
+ return self ._size * padding [self ._tickdir ]
186
185
187
186
def get_children (self ):
188
187
children = [self .tick1line , self .tick2line ,
@@ -1109,7 +1108,8 @@ def get_tightbbox(self, renderer):
1109
1108
return None
1110
1109
1111
1110
def get_tick_padding (self ):
1112
- return self .majorTicks [0 ].get_tick_padding ()
1111
+ return max (self .majorTicks [0 ].get_tick_padding (),
1112
+ self .minorTicks [0 ].get_tick_padding ())
1113
1113
1114
1114
@allow_rasterization
1115
1115
def draw (self , renderer , * args , ** kwargs ):
You can’t perform that action at this time.
0 commit comments