Skip to content

Commit 4bb7b6f

Browse files
committed
DOC: dflt_style_changes, MaxNLocator algorithm changed
1 parent 4d2de40 commit 4bb7b6f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

doc/users/dflt_style_changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -968,6 +968,11 @@ or create a new `~matplotlib.ticker.MaxNLocator`::
968968
import matplotlib.ticker as mticker
969969
ax.set_major_locator(mticker.MaxNLocator(nbins=9, steps=[1, 2, 5, 10])
970970

971+
The algorithm used by `~matplotlib.ticker.MaxNLocator` has been
972+
improved, and this may change the choice of tick locations in some
973+
cases. This also affects `~matplotlib.ticker.AutoLocator`, which
974+
uses ``MaxNLocator`` internally.
975+
971976
For a log-scaled axis the default locator is the
972977
`~matplotlib.ticker.LogLocator`. Previously the maximum number
973978
of ticks was set to 15, and could not be changed. Now there is a

0 commit comments

Comments
 (0)