Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
MAINT: Updates to formatters in `matplotlib.ticker` #6253
Conversation
mdboom
added the
needs_review
label
Mar 31, 2016
madphysicist
referenced
this pull request
Mar 31, 2016
Merged
ENH: Added a `PercentFormatter` class to `matplotlib.ticker` #6251
QuLogic
commented on an outdated diff
Mar 31, 2016
QuLogic
commented on an outdated diff
Mar 31, 2016
| return self.func(x, pos) | ||
| class FormatStrFormatter(Formatter): | ||
| """ | ||
| - Use an old-style ('%' operator) format string to format the tick | ||
| + Use an old-style ('%' operator) format string to format the tick. | ||
| + | ||
| + The format string should have a single variable format (%) in it. | ||
| + It will be applied to the value (not the postition) of the tick. |
|
|
QuLogic
and 1 other
commented on an outdated diff
Mar 31, 2016
| def __init__(self, useOffset=None, useMathText=None, useLocale=None): | ||
| + """ |
QuLogic
Member
|
QuLogic
commented on an outdated diff
Mar 31, 2016
| Sets size thresholds for scientific notation. | ||
| - e.g., ``formatter.set_powerlimits((-3, 4))`` sets the pre-2007 default | ||
| - in which scientific notation is used for numbers less than 1e-3 or | ||
| - greater than 1e4. | ||
| - See also :meth:`set_scientific`. | ||
| - ''' | ||
| + Limits is a two-element sequence containing the powers of 10 |
|
|
tacaswell
commented on the diff
Apr 2, 2016
| self._base = base | ||
| def label_minor(self, labelOnlyBase): | ||
| - 'switch on/off minor ticks labeling' | ||
| + """ | ||
| + Switch minor tick labeling on or off. | ||
| + | ||
| + ``labelOnlyBase=True`` to turn off minor ticks. | ||
| + """ |
madphysicist
Contributor
|
tacaswell
modified the milestone: 2.1 (next point release), 2.0 (style change major release)
Apr 2, 2016
madphysicist
referenced
this pull request
Apr 3, 2016
Closed
Updated argument to `mpl.ticker.LogFormatter.label_minor` #6264
|
This looks good, but needs a rebase |
madphysicist
added some commits
Mar 29, 2016
|
Fixed. I've been spoiled by Homu on numpy. |
tacaswell
merged commit 8658721
into matplotlib:master
Apr 28, 2016
tacaswell
removed the
needs_review
label
Apr 28, 2016
tacaswell
added a commit
that referenced
this pull request
Apr 28, 2016
|
|
tacaswell |
668f292
|
|
backported to v2.x as 668f292 |
madphysicist commentedMar 31, 2016
This PR is a split from #6251. Most of the changes are to docs, but there are two minor code changes:
__all__has been moved to the top of the file and a couple of missing formatters were added to it.As the title suggests, only formatters were affected. Locators were left untouched.
I have retained the original commits until the PR is reviewed to make sure that I did the split correctly.