We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22906c2 commit ee1fb54Copy full SHA for ee1fb54
lib/matplotlib/colorbar.py
@@ -267,7 +267,8 @@ def __call__(self):
267
vmin = self._colorbar.norm.vmin
268
vmax = self._colorbar.norm.vmax
269
ticks = ticker.AutoMinorLocator.__call__(self)
270
- return ticks[(ticks >= vmin) & (ticks <= vmax)]
+ rtol = (vmax - vmin) * 1e-10
271
+ return ticks[(ticks >= vmin - rtol) & (ticks <= vmax + rtol)]
272
273
274
class _ColorbarLogLocator(ticker.LogLocator):
0 commit comments