8000 Change spelling of 'colour' to 'color'. · matplotlib/matplotlib@38b6157 · GitHub
[go: up one dir, main page]

Skip to content

Commit 38b6157

Browse files
committed
Change spelling of 'colour' to 'color'.
1 parent 8d44f75 commit 38b6157

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ def compare_images( expected, actual, tol, in_decorator=False ):
282282
= INPUT VARIABLES
283283
- expected The filename of the expected image.
284284
- actual The filename of the actual image.
285-
- tol The tolerance (a colour value difference, where 255 is the
285+
- tol The tolerance (a color value difference, where 255 is the
286286
maximal difference). The test fails if the average pixel
287287
difference is greater than this value.
288288
- in_decorator If called from image_comparison decorator, this should be

lib/matplotlib/tests/test_compare_images.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def test_image_compare_scrambled():
6363
# This expects the images to compare completely different, with a very large
6464
# RMS.
6565
# Note: The image has been scrambled in a specific way, by having each
66-
# colour component of each pixel randomly placed somewhere in the image. It
67-
# contains exactly the same number of pixels of each colour value of R, G
66+
# color component of each pixel randomly placed somewhere in the image. It
67+
# contains exactly the same number of pixels of each color value of R, G
6868
# and B, but in a totally different position.
6969
im1 = 'basn3p02.png'
7070
im2 = 'basn3p02-scrambled.png'
@@ -74,8 +74,8 @@ def test_image_compare_scrambled():
7474

7575
def test_image_compare_shade_difference():
7676
"""Test comparison of an image and a slightly brighter image."""
77-
# The two images are solid colour, with the second image being exactly 1
78-
# colour value brighter.
77+
# The two images are solid color, with the second image being exactly 1
78+
# color value brighter.
7979
# This expects the images to compare equal under normal tolerance, and have
8080
# an RMS of exactly 1.
8181
im1 = 'all127.png'

0 commit comments

Comments
 (0)
0