Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1ab3332

Browse files
authored
DOC: Correct grammatical issues especially on a/an usage (#30736)
* DOC: Correct grammatical issues especially a/an usage* DOC: Revise the print message
1 parentdb83eff commit1ab3332

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
ifnotmarker_obj.is_filled():
52725272
iforig_edgecolorisnotNone:
52735273
_api.warn_external(
5274-
f"You passeda edgecolor/edgecolors ({orig_edgecolor!r}) "
5274+
f"You passedan 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 havea even number of frequencies, don't scale NFFT/2
356+
# if we havean even number of frequencies, don't scale NFFT/2
357357
ifnotNFFT%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
deftest_warn_ignored_scatter_kwargs():
91069106
withpytest.warns(UserWarning,
9107-
match=r"You passeda edgecolor/edgecolors"):
9107+
match=r"You passedan 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 hasan T::r field.
499+
// T is rgba if and only if it hasa T::r field.
500500
template<typename T,typename =void>structis_grayscale : std::true_type {};
501501
template<typename T>structis_grayscale<T, std::void_t<decltype(T::r)>> : std::false_type {};
502502
template<typename T>constexprbool 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
namespacepy= pybind11;
7676

7777

78-
/* An edge of a triangle consisting ofan triangle index in the range 0 to
78+
/* An edge of a triangle consisting ofa 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
structTriEdgefinal

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp