Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1d78f12

Browse files
authored
Merge pull request #26257 from StefRe/fix/locator-ticker-wording
DOC: Clarify terminology
2 parents 8c7b020 + 34d4833 commit 1d78f12

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

galleries/examples/ticks/date_formatters_locators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def plot_axis(ax, locator=None, xmax='2002-02-01', fmt=None, formatter=None):
3535
fontsize=14, fontname='Monospace', color='tab:blue')
3636

3737
# %%
38-
# :ref:`Date locators <date-tickers>`
39-
# -----------------------------------
38+
# :ref:`date-locators`
39+
# --------------------
4040

4141

4242
locators = [

lib/matplotlib/dates.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
`~matplotlib.units` to convert `datetime.datetime`, and `numpy.datetime64`
77
objects when plotted on an x- or y-axis. The user does not
88
need to do anything for dates to be formatted, but dates often have strict
9-
formatting needs, so this module provides many axis locators and formatters.
9+
formatting needs, so this module provides many tick locators and formatters.
1010
A basic example using `numpy.datetime64` is::
1111
1212
import numpy as np
@@ -82,12 +82,12 @@
8282
In [1]: date(2006, 4, 1).toordinal() - date(1, 1, 1).toordinal()
8383
Out[1]: 732401
8484
85-
All the Matplotlib date converters, tickers and formatters are timezone aware.
85+
All the Matplotlib date converters, locators and formatters are timezone aware.
8686
If no explicit timezone is provided, :rc:`timezone` is assumed, provided as a
8787
string. If you want to use a different timezone, pass the *tz* keyword
88-
argument of `num2date` to any date tickers or locators you create. This can
89-
be either a `datetime.tzinfo` instance or a string with the timezone name that
90-
can be parsed by `~dateutil.tz.gettz`.
88+
argument of `num2date` to any date tick locators or formatters you create. This
89+
can be either a `datetime.tzinfo` instance or a string with the timezone name
90+
that can be parsed by `~dateutil.tz.gettz`.
9191
9292
A wide range of specific and general purpose date tick locators and
9393
formatters are provided in this module. See
@@ -99,12 +99,12 @@
9999
100100
.. _dateutil: https://dateutil.readthedocs.io
101101
102-
.. _date-tickers:
102+
.. _date-locators:
103103
104-
Date tickers
105-
------------
104+
Date tick locators
105+
------------------
106106
107-
Most of the date tickers can locate single or multiple values. For example::
107+
Most of the date tick locators can locate single or multiple ticks. For example::
108108
109109
# import constants for the days of the week
110110
from matplotlib.dates import MO, TU, WE, TH, FR, SA, SU
@@ -126,7 +126,7 @@
126126
rule = rrulewrapper(YEARLY, byeaster=1, interval=5)
127127
loc = RRuleLocator(rule)
128128
129-
The available date tickers are:
129+
The available date tick locators are:
130130
131131
* `MicrosecondLocator`: Locate microseconds.
132132
@@ -622,7 +622,7 @@ def _wrap_in_tex(text):
622622
return ret_text
623623

624624

625-
## date tickers and formatters ###
625+
## date tick locators and formatters ###
626626

627627

628628
class DateFormatter(ticker.Formatter):

0 commit comments

Comments
 (0)