Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34d476d
commit 1e89b2b
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
``matplotlib.ticker.LinearLocator`` algorithm update | ||
``````````````````````````` | ||
|
||
The ``matplotlib.ticker.LinearLocator`` is used to define the range and location | ||
of tickmarks of a plot when the user wants a exact number of ticks. | ||
``LinearLocator`` thus differs from the default locator ``MaxNLocator``, which | ||
does not necessarily return the exact user requested number of ticks. | ||
|
||
The view range algorithm in ``matplotlib.ticker.LinearLocator`` has been | ||
changed so that more convenient tick location are chosen. The new algorithm | ||
returns a plot view range that is a multiple of the user requested number of | ||
ticks. This ensures tick marks to be located at whole integers more | ||
constistently. For example, when both y-axis of a``twinx`` plot use | ||
``matplotlib.ticker.LinearLocator`` with the same number of ticks, the grids of | ||
both axis will be properly aligned at convenient tick locations. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters