Skip to content

Commit b9aaca3

Browse files
authored
Merge pull request matplotlib#30919 from star1327p/a-an-usage
DOC: Correct typos on a/an usage including print messages
2 parents 776b249 + 75b27f8 commit b9aaca3

File tree

16 files changed

+17
-17
lines changed

16 files changed

+17
-17
lines changed

doc/devel/contribute.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ Start a pull request
337337

338338
The preferred way to contribute to Matplotlib is to fork the `main
339339
repository <https://github.com/matplotlib/matplotlib/>`__ on GitHub,
340-
then submit a "pull request" (PR). To work on a a pull request:
340+
then submit a "pull request" (PR). To work on a pull request:
341341

342342
#. **First** set up a development environment, either by cloning a copy of the
343343
Matplotlib repository to your own computer or by using Github codespaces, by

doc/devel/license.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ another project make sure it has a PSF, BSD, MIT or compatible license
1010
licenses). If it doesn't, you may consider contacting the author and
1111
asking them to relicense it. GPL and LGPL code are not acceptable in
1212
the main code base, though we are considering an alternative way of
13-
distributing L/GPL code through an separate channel, possibly a
13+
distributing L/GPL code through a separate channel, possibly a
1414
toolkit. If you include code, make sure you include a copy of that
1515
code's license in the license directory if the code's license requires
1616
you to distribute the license with it. Non-BSD compatible licenses

doc/release/next_whats_new/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Include contents of the form::
3434
details should be left out when they do not impact usage, for example
3535
implementation details.
3636

37-
The description may include a a short instructive example, if it helps to
37+
The description may include a short instructive example, if it helps to
3838
understand the feature.
3939

4040
Please avoid using references in section titles, as it causes links to be

galleries/examples/color/color_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
5) a single letter string, i.e. one of
1717
``{'b', 'g', 'r', 'c', 'm', 'y', 'k', 'w'}``, which are short-hand notations
1818
for shades of blue, green, red, cyan, magenta, yellow, black, and white;
19-
6) a X11/CSS4 ("html") color name, e.g. ``"blue"``;
19+
6) an X11/CSS4 ("html") color name, e.g. ``"blue"``;
2020
7) a name from the `xkcd color survey <https://xkcd.com/color/rgb/>`__,
2121
prefixed with ``'xkcd:'`` (e.g., ``'xkcd:sky blue'``);
2222
8) a "Cn" color spec, i.e. ``'C'`` followed by a number, which is an index into

galleries/examples/text_labels_and_annotations/multiline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
ax0.set_aspect(1)
1313
ax0.plot(np.arange(10))
14-
ax0.set_xlabel('this is a xlabel\n(with newlines!)')
14+
ax0.set_xlabel('this is an xlabel\n(with newlines!)')
1515
ax0.set_ylabel('this is vertical\ntest', multialignment='center')
1616
ax0.text(2, 7, 'this is\nyet another test',
1717
rotation=45,

galleries/users_explain/figure/event_handling.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ Picking exercise
605605

606606
Create a data set of 100 arrays of 1000 Gaussian random numbers and
607607
compute the sample mean and standard deviation of each of them (hint:
608-
NumPy arrays have a mean and std method) and make a xy marker plot of
608+
NumPy arrays have a mean and std method) and make an xy marker plot of
609609
the 100 means vs. the 100 standard deviations. Connect the line
610610
created by the plot command to the pick event, and plot the original
611611
time series of the data that generated the clicked on points. If more

galleries/users_explain/toolkits/axisartist.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ few things that mpl_toolkits.axisartist.Axes is different from original
131131
Axes from Matplotlib.
132132

133133
* Axis elements (axis line(spine), ticks, ticklabel and axis labels)
134-
are drawn by a AxisArtist instance. Unlike Axis, left, right, top
134+
are drawn by an AxisArtist instance. Unlike Axis, left, right, top
135135
and bottom axis are drawn by separate artists. And each of them may
136136
have different tick location and different tick labels.
137137

@@ -569,7 +569,7 @@ See the first example of this page.
569569
Current limitations and TODO's
570570
==============================
571571

572-
The code need more refinement. Here is a incomplete list of issues and TODO's
572+
The code need more refinement. Here is an incomplete list of issues and TODO's
573573

574574
* No easy way to support a user customized tick location (for
575575
curvilinear grid). A new Locator class needs to be created.

lib/matplotlib/backends/qt_editor/figureoptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def prepare_data(d, init):
9292
`"None"`, `"none"` and `""` are synonyms); *init* is one shorthand
9393
of the initial style.
9494
95-
This function returns an list suitable for initializing a
95+
This function returns a list suitable for initializing a
9696
FormLayout combobox, namely `[initial_name, (shorthand,
9797
style_name), (shorthand, style_name), ...]`.
9898
"""

lib/matplotlib/dates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ def drange(dstart, dend, delta):
537537
# calculate end of the interval which will be generated
538538
dinterval_end = dstart + num * delta
539539

540-
# ensure, that an half open interval will be generated [dstart, dend)
540+
# ensure, that a half open interval will be generated [dstart, dend)
541541
if dinterval_end >= dend:
542542
# if the endpoint is greater than or equal to dend,
543543
# just subtract one delta

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,7 @@ def show(self, warn=True):
27662766
27672767
.. warning::
27682768
2769-
This does not manage an GUI event loop. Consequently, the figure
2769+
This does not manage a GUI event loop. Consequently, the figure
27702770
may only be shown briefly or not shown at all if you or your
27712771
environment are not managing an event loop.
27722772

0 commit comments

Comments
 (0)