From d15e5af578db848999e6a9036366818c73da645c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Big=20Data=20Tech=2E=20Lab=20=EC=9D=B4=ED=83=9C=ED=9B=88?= Date: Mon, 26 Jun 2017 10:22:16 +0900 Subject: [PATCH] Fix typos --- lib/matplotlib/quiver.py | 2 +- lib/matplotlib/tests/test_colors.py | 4 ++-- lib/matplotlib/tri/triinterpolate.py | 2 +- setup.cfg.template | 2 +- src/_contour.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/matplotlib/quiver.py b/lib/matplotlib/quiver.py index 3617705bde07..176869eae920 100644 --- a/lib/matplotlib/quiver.py +++ b/lib/matplotlib/quiver.py @@ -925,7 +925,7 @@ def __init__(self, ax, *args, **kw): self.flip = kw.pop('flip_barb', False) transform = kw.pop('transform', ax.transData) - # Flagcolor and and barbcolor provide convenience parameters for + # Flagcolor and barbcolor provide convenience parameters for # setting the facecolor and edgecolor, respectively, of the barb # polygon. We also work here to make the flag the same color as the # rest of the barb by default diff --git a/lib/matplotlib/tests/test_colors.py b/lib/matplotlib/tests/test_colors.py index 37cb2039e35e..20f80755c2cb 100644 --- a/lib/matplotlib/tests/test_colors.py +++ b/lib/matplotlib/tests/test_colors.py @@ -410,7 +410,7 @@ def test_light_source_shading_default(): ls = mcolors.LightSource(315, 45) rgb = ls.shade(z, cmap) - # Result stored transposed and rounded for for more compact display... + # Result stored transposed and rounded for more compact display... expect = np.array( [[[0.00, 0.45, 0.90, 0.90, 0.82, 0.62, 0.28, 0.00], [0.45, 0.94, 0.99, 1.00, 1.00, 0.96, 0.65, 0.17], @@ -475,7 +475,7 @@ def test_light_source_masked_shading(): ls = mcolors.LightSource(315, 45) rgb = ls.shade(z, cmap) - # Result stored transposed and rounded for for more compact display... + # Result stored transposed and rounded for more compact display... expect = np.array( [[[0.00, 0.46, 0.91, 0.91, 0.84, 0.64, 0.29, 0.00], [0.46, 0.96, 1.00, 1.00, 1.00, 0.97, 0.67, 0.18], diff --git a/lib/matplotlib/tri/triinterpolate.py b/lib/matplotlib/tri/triinterpolate.py index dc3e83960aa6..bfce479e56df 100644 --- a/lib/matplotlib/tri/triinterpolate.py +++ b/lib/matplotlib/tri/triinterpolate.py @@ -57,7 +57,7 @@ def __init__(self, triangulation, z, trifinder=None): self._unit_y = 1.0 # Default triangle renumbering: None (= no renumbering) - # Renumbering may be used to avoid unecessary computations + # Renumbering may be used to avoid unnecessary computations # if complex calculations are done inside the Interpolator. # Please refer to :meth:`_interpolate_multikeys` for details. self._tri_renum = None diff --git a/setup.cfg.template b/setup.cfg.template index 1f384d3df860..f53084083ea6 100644 --- a/setup.cfg.template +++ b/setup.cfg.template @@ -55,7 +55,7 @@ # therefore they are installed unconditionally. # # You can uncomment any the following lines to change this -# behavior. Acceptible values are: +# behavior. Acceptable values are: # # True: build the extension. Exits with a warning if the # required dependencies are not available diff --git a/src/_contour.cpp b/src/_contour.cpp index 0f5176b84041..77c0dab46af5 100644 --- a/src/_contour.cpp +++ b/src/_contour.cpp @@ -1213,7 +1213,7 @@ void QuadContourGenerator::init_cache_grid(const MaskArray& mask) long i, j, quad; if (mask.empty()) { - // No mask, easy to calculate quad existance and boundaries together. + // No mask, easy to calculate quad existence and boundaries together. quad = 0; for (j = 0; j < _ny; ++j) { for (i = 0; i < _nx; ++i, ++quad) {