File tree 1 file changed +3
-1
lines changed 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1316,6 +1316,7 @@ def get_minorticklocs(self):
1316
1316
# Remove minor ticks duplicating major ticks.
1317
1317
major_locs = self .major .locator ()
1318
1318
minor_locs = self .minor .locator ()
1319
+ deconflict = getattr (self .minor .locator , 'enable_deconflict' , True )
1319
1320
transform = self ._scale .get_transform ()
1320
1321
tr_minor_locs = transform .transform (minor_locs )
1321
1322
tr_major_locs = transform .transform (major_locs )
@@ -1325,7 +1326,8 @@ def get_minorticklocs(self):
1325
1326
tol = (hi - lo ) * 1e-5
1326
1327
minor_locs = [
1327
1328
loc for loc , tr_loc in zip (minor_locs , tr_minor_locs )
1328
- if not np .isclose (tr_loc , tr_major_locs , atol = tol , rtol = 0 ).any ()]
1329
+ if (not deconflict or
1330
+ not np .isclose (tr_loc , tr_major_locs , atol = tol , rtol = 0 ).any ())]
1329
1331
return minor_locs
1330
1332
1331
1333
def get_ticklocs (self , minor = False ):
You can’t perform that action at this time.
0 commit comments