Skip to content

Commit ee1fb54

Browse files
committed
FIX: make sure all ticks show up for colorbar minor tick
1 parent 22906c2 commit ee1fb54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/colorbar.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,8 @@ def __call__(self):
267267
vmin = self._colorbar.norm.vmin
268268
vmax = self._colorbar.norm.vmax
269269
ticks = ticker.AutoMinorLocator.__call__(self)
270-
return ticks[(ticks >= vmin) & (ticks <= vmax)]
270+
rtol = (vmax - vmin) * 1e-10
271+
return ticks[(ticks >= vmin - rtol) & (ticks <= vmax + rtol)]
271272

272273

273274
class _ColorbarLogLocator(ticker.LogLocator):

0 commit comments

Comments
 (0)