File tree Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +21
-0
lines changed
Original file line number Diff line number Diff line change @@ -116,6 +116,16 @@ consistently. For example, when both y-axes of a``twinx`` plot use
116
116
``matplotlib.ticker.LinearLocator `` with the same number of ticks,
117
117
their y-tick locations and grid lines will coincide.
118
118
119
+ `matplotlib.ticker.LogLocator ` gains numticks kwarg
120
+ ---------------------------------------------------
121
+
122
+ The maximum number of ticks generated by the
123
+ `~matplotlib.ticker.LogLocator ` can now be controlled explicitly
124
+ via setting the new 'numticks' kwarg to an integer. By default
125
+ the kwarg is None which internally sets it to the 'auto' string,
126
+ triggering a new algorithm for adjusting the maximum according
127
+ to the axis length relative to the ticklabel font size.
128
+
119
129
120
130
New defaults for 3D quiver function in mpl_toolkits.mplot3d.axes3d.py
121
131
---------------------------------------------------------------------
Original file line number Diff line number Diff line change @@ -896,6 +896,17 @@ or create a new `~matplotlib.ticker.MaxNLocator`::
896
896
import matplotlib.ticker as mticker
897
897
ax.set_major_locator(mticker.MaxNLocator(nbins=9, steps=[1, 2, 5, 10])
898
898
899
+ For a log-scaled axis the default locator is the
900
+ `~matplotlib.ticker.LogLocator `. Previously the maximum number
901
+ of ticks was set to 15, and could not be changed. Now there is a
902
+ `numticks ` kwarg for setting the maximum to any integer value,
903
+ to the string 'auto', or to its default value of None which is
904
+ equivalent to 'auto'. With the 'auto' setting the maximum number
905
+ will be no larger than 9, and will be reduced depending on the
906
+ length of the axis in units of the tick font size. As in the
907
+ case of the AutoLocator, the heuristic algorithm reduces the
908
+ incidence of overlapping tick labels but does not prevent it.
909
+
899
910
900
911
Auto limits
901
912
-----------
You can’t perform that action at this time.
0 commit comments