Skip to content

Commit 1ab3332

Browse files
authored
DOC: Correct grammatical issues especially on a/an usage (matplotlib#30736)
* DOC: Correct grammatical issues especially a/an usage * DOC: Revise the print message
1 parent db83eff commit 1ab3332

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5271,7 +5271,7 @@ def scatter(self, x, y, s=None, c=None, marker=None, cmap=None, norm=None,
52715271
if not marker_obj.is_filled():
52725272
if orig_edgecolor is not None:
52735273
_api.warn_external(
5274-
f"You passed a edgecolor/edgecolors ({orig_edgecolor!r}) "
5274+
f"You passed an edgecolor/edgecolors ({orig_edgecolor!r}) "
52755275
f"for an unfilled marker ({marker!r}). Matplotlib is "
52765276
"ignoring the edgecolor in favor of the facecolor. This "
52775277
"behavior may change in the future."

lib/matplotlib/mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def _spectral_helper(x, y=None, NFFT=None, Fs=None, detrend_func=None,
353353
# the sampling frequency, if desired. Scale everything, except the DC
354354
# component and the NFFT/2 component:
355355

356-
# if we have a even number of frequencies, don't scale NFFT/2
356+
# if we have an even number of frequencies, don't scale NFFT/2
357357
if not NFFT % 2:
358358
slc = slice(1, -1, None)
359359
# if we have an odd number, just don't scale DC

lib/matplotlib/tests/test_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9104,7 +9104,7 @@ def test_patch_bounds(): # PR 19078
91049104
@mpl.style.context('default')
91059105
def test_warn_ignored_scatter_kwargs():
91069106
with pytest.warns(UserWarning,
9107-
match=r"You passed a edgecolor/edgecolors"):
9107+
match=r"You passed an edgecolor/edgecolors"):
91089108
plt.scatter([0], [0], marker="+", s=500, facecolor="r", edgecolor="b")
91099109

91109110

src/_image_resample.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,7 @@ typedef enum {
496496
} interpolation_e;
497497

498498

499-
// T is rgba if and only if it has an T::r field.
499+
// T is rgba if and only if it has a T::r field.
500500
template<typename T, typename = void> struct is_grayscale : std::true_type {};
501501
template<typename T> struct is_grayscale<T, std::void_t<decltype(T::r)>> : std::false_type {};
502502
template<typename T> constexpr bool is_grayscale_v = is_grayscale<T>::value;

src/tri/_tri.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
namespace py = pybind11;
7676

7777

78-
/* An edge of a triangle consisting of an triangle index in the range 0 to
78+
/* An edge of a triangle consisting of a triangle index in the range 0 to
7979
* ntri-1 and an edge index in the range 0 to 2. Edge i goes from the
8080
* triangle's point i to point (i+1)%3. */
8181
struct TriEdge final

0 commit comments

Comments
 (0)