@@ -454,7 +454,7 @@ def __init__(self, ax, mappable=None, *, cmap=None,
454
454
if np .iterable (ticks ):
455
455
self ._locator = ticker .FixedLocator (ticks , nbins = len (ticks ))
456
456
else :
457
- self ._locator = ticks # Handle default in _ticker()
457
+ self ._locator = ticks
458
458
459
459
if isinstance (format , str ):
460
460
# Check format between FormatStrFormatter and StrMethodFormatter
@@ -1095,32 +1095,6 @@ def remove(self):
1095
1095
# use_gridspec was True
1096
1096
ax .set_subplotspec (subplotspec )
1097
1097
1098
- def _ticker (self , locator , formatter ):
1099
- """
1100
- Return the sequence of ticks (colorbar data locations),
1101
- ticklabels (strings), and the corresponding offset string.
1102
- """
1103
- if isinstance (self .norm , colors .NoNorm ) and self .boundaries is None :
1104
- intv = self ._values [0 ], self ._values [- 1 ]
1105
- else :
1106
- intv = self .vmin , self .vmax
1107
- locator .create_dummy_axis (minpos = intv [0 ])
1108
- locator .axis .set_view_interval (* intv )
1109
- locator .axis .set_data_interval (* intv )
1110
- formatter .set_axis (locator .axis )
1111
-
1112
- b = np .array (locator ())
1113
- if isinstance (locator , ticker .LogLocator ):
1114
- eps = 1e-10
1115
- b = b [(b <= intv [1 ] * (1 + eps )) & (b >= intv [0 ] * (1 - eps ))]
1116
- else :
1117
- eps = (intv [1 ] - intv [0 ]) * 1e-10
1118
- b = b [(b <= intv [1 ] + eps ) & (b >= intv [0 ] - eps )]
1119
- ticks = self ._locate (b )
1120
- ticklabels = formatter .format_ticks (b )
1121
- offset_string = formatter .get_offset ()
1122
- return ticks , ticklabels , offset_string
1123
-
1124
1098
def _process_values (self ):
1125
1099
"""
1126
1100
Set `_boundaries` and `_values` based on the self.boundaries and
0 commit comments