Skip to content

Commit 419f6d3

Browse files
committed
DOC: slightly better commenting
1 parent 5e60314 commit 419f6d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/matplotlib/ticker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2255,7 +2255,8 @@ def tick_values(self, vmin, vmax):
22552255
# decade* and the major locator stride is 1 and there's no more
22562256
# than one minor tick, switch to AutoLocator.
22572257
ticklocs = AutoLocator().tick_values(vmin, vmax)
2258-
# Don't overstrike the major labels.
2258+
# Don't overstrike the major labels. Assumes major locs are
2259+
# at b = self._base
22592260
ticklocs = ticklocs[
22602261
~is_close_to_int(np.log(ticklocs) / np.log(b))]
22612262
return ticklocs

0 commit comments

Comments
 (0)