Skip to content

Commit cda498c

Browse files
committed
FIX: colorbar re-check norm before draw for autolabels
1 parent 627a281 commit cda498c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colorbar.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ def tick_values(self, vmin, vmax):
302302
=======
303303
ticks = ticker.LogLocator.tick_values(self, vmin, vmax)
304304
rtol = (np.log10(vmax) - np.log10(vmin)) * 1e-10
305-
ticks = ticks[(np.log10(ticks) >= np.log10(vmin) - rtol) &
305+
ticks = ticks[(np.log10(ticks) >= np.log10(vmin) - rtol) &
306306
(np.log10(ticks) <= np.log10(vmax) + rtol)]
307307
return ticks
308308
>>>>>>> MNT: add tolerance to colorbar locator methods

0 commit comments

Comments
 (0)