-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Minor doc markup fixes. #9262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Minor doc markup fixes. #9262
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
Minor doc markup fixes.
- Loading branch information
commit c7ef6585c927ad4d11fedf41e15142090d8c07a9
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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 |
---|---|---|
|
@@ -38,99 +38,94 @@ | |
The Locator subclasses defined here are | ||
|
||
:class:`NullLocator` | ||
No ticks | ||
No ticks. | ||
|
||
:class:`FixedLocator` | ||
Tick locations are fixed | ||
Tick locations are fixed. | ||
|
||
:class:`IndexLocator` | ||
locator for index plots (e.g., where x = range(len(y))) | ||
Locator for index plots (e.g., where ``x = range(len(y))``). | ||
|
||
:class:`LinearLocator` | ||
evenly spaced ticks from min to max | ||
Evenly spaced ticks from min to max. | ||
|
||
:class:`LogLocator` | ||
logarithmically ticks from min to max | ||
Logarithmically ticks from min to max. | ||
|
||
:class:`SymmetricalLogLocator` | ||
locator for use with with the symlog norm, works like the | ||
`LogLocator` for the part outside of the threshold and add 0 if | ||
inside the limits | ||
Locator for use with with the symlog norm; works like `LogLocator` for the | ||
part outside of the threshold and add 0 if inside the limits. | ||
|
||
:class:`MultipleLocator` | ||
ticks and range are a multiple of base; either integer or float | ||
Ticks and range are a multiple of base; either integer or float. | ||
|
||
:class:`OldAutoLocator` | ||
choose a MultipleLocator and dyamically reassign it for | ||
intelligent ticking during navigation | ||
Choose a `MultipleLocator` and dyamically reassign it for intelligent | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "dyamically" -> "dynamically". |
||
ticking during navigation. | ||
|
||
:class:`MaxNLocator` | ||
finds up to a max number of ticks at nice locations | ||
Finds up to a max number of ticks at nice locations. | ||
|
||
:class:`AutoLocator` | ||
:class:`MaxNLocator` with simple defaults. This is the default | ||
tick locator for most plotting. | ||
`MaxNLocator` with simple defaults. This is the default tick locator for | ||
most plotting. | ||
|
||
:class:`AutoMinorLocator` | ||
locator for minor ticks when the axis is linear and the | ||
major ticks are uniformly spaced. It subdivides the major | ||
Locator for minor ticks when the axis is linear and the | ||
major ticks are uniformly spaced. Subdivides the major | ||
tick interval into a specified number of minor intervals, | ||
defaulting to 4 or 5 depending on the major interval. | ||
|
||
:class:`LogitLocator` | ||
Locator for logit scaling. | ||
|
||
|
||
There are a number of locators specialized for date locations - see | ||
the dates module | ||
the `dates` module. | ||
|
||
You can define your own locator by deriving from Locator. You must | ||
override the ``__call__`` method, which returns a sequence of locations, | ||
and you will probably want to override the autoscale method to set the | ||
view limits from the data limits. | ||
|
||
If you want to override the default locator, use one of the above or a | ||
custom locator and pass it to the x or y axis instance. The relevant | ||
methods are:: | ||
If you want to override the default locator, use one of the above or a custom | ||
locator and pass it to the x or y axis instance. The relevant methods are:: | ||
|
||
ax.xaxis.set_major_locator( xmajorLocator ) | ||
ax.xaxis.set_minor_locator( xminorLocator ) | ||
ax.yaxis.set_major_locator( ymajorLocator ) | ||
ax.yaxis.set_minor_locator( yminorLocator ) | ||
ax.xaxis.set_major_locator(xmajor_locator) | ||
ax.xaxis.set_minor_locator(xminor_locator) | ||
ax.yaxis.set_major_locator(ymajor_locator) | ||
ax.yaxis.set_minor_locator(yminor_locator) | ||
|
||
The default minor locator is the NullLocator, e.g., no minor ticks on by | ||
default. | ||
The default minor locator is `NullLocator`, i.e., no minor ticks on by default. | ||
|
||
Tick formatting | ||
--------------- | ||
|
||
Tick formatting is controlled by classes derived from Formatter. The | ||
formatter operates on a single tick value and returns a string to the | ||
axis. | ||
Tick formatting is controlled by classes derived from Formatter. The formatter | ||
operates on a single tick value and returns a string to the axis. | ||
|
||
:class:`NullFormatter` | ||
No labels on the ticks | ||
No labels on the ticks. | ||
|
||
:class:`IndexFormatter` | ||
Set the strings from a list of labels | ||
Set the strings from a list of labels. | ||
|
||
:class:`FixedFormatter` | ||
Set the strings manually for the labels | ||
Set the strings manually for the labels. | ||
|
||
:class:`FuncFormatter` | ||
User defined function sets the labels | ||
User defined function sets the labels. | ||
|
||
:class:`StrMethodFormatter` | ||
Use string `format` method | ||
Use string `format` method. | ||
|
||
:class:`FormatStrFormatter` | ||
Use an old-style sprintf format string | ||
Use an old-style sprintf format string. | ||
|
||
:class:`ScalarFormatter` | ||
Default formatter for scalars: autopick the format string | ||
Default formatter for scalars: autopick the format string. | ||
|
||
:class:`LogFormatter` | ||
Formatter for log axes | ||
Formatter for log axes. | ||
|
||
:class:`LogFormatterExponent` | ||
Format values for log axis using ``exponent = log_base(value)``. | ||
|
@@ -158,10 +153,10 @@ | |
To control the major and minor tick label formats, use one of the | ||
following methods:: | ||
|
||
ax.xaxis.set_major_formatter( xmajorFormatter ) | ||
ax.xaxis.set_minor_formatter( xminorFormatter ) | ||
ax.yaxis.set_major_formatter( ymajorFormatter ) | ||
ax.yaxis.set_minor_formatter( yminorFormatter ) | ||
ax.xaxis.set_major_formatter(xmajor_formatter) | ||
ax.xaxis.set_minor_formatter(xminor_formatter) | ||
ax.yaxis.set_major_formatter(ymajor_formatter) | ||
ax.yaxis.set_minor_formatter(yminor_formatter) | ||
|
||
See :ref:`sphx_glr_gallery_ticks_and_spines_major_minor_demo.py` for an | ||
example of setting major and minor ticks. See the :mod:`matplotlib.dates` | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Logarithmically spaced"?