Skip to content

Commit

Permalink
Updated "what's new" to highlight the new locator interface.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelson committed Aug 15, 2012
1 parent b5fb5c6 commit 4526865
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/users/whats_new.rst
Expand Up @@ -17,6 +17,18 @@ This page just covers the highlights -- for the full story, see the
new in matplotlib-1.2
=====================

Locator interface
-----------------

Philip Elson exposed the intelligence behind the tick Locator classes with a
simple interface. For instance, to get no more than 5 sensible steps which
span the values 10 and 19.5::

>>> import matplotlib.ticker as mticker
>>> locator = mticker.MaxNLocator(nbins=5)
>>> print(locator.tick_values(10, 19.5))
[ 10. 12. 14. 16. 18. 20.]

Tri-Surface Plots
-----------------

Expand Down

0 comments on commit 4526865

Please sign in to comment.