Skip to content

Commit f4cf125

Browse files
author
Charlie Tonneslan
authored
Drop duplicate 'the the' in two doc comments (matplotlib#31741)
Two unrelated spots have the same minor typo: - lib/matplotlib/_mathtext.py: "greater than the the actual" in the ComputerModernFontConstants x-height note. - lib/matplotlib/colors.py: "mapped through the the corresponding norm" in the structured-array branch of the to_rgba docstring. Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
1 parent 39c556c commit f4cf125

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/_mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ class FontConstantsBase:
10101010

10111011
class ComputerModernFontConstants(FontConstantsBase):
10121012
# Previously, the x-height of Computer Modern was obtained from the font
1013-
# table. However, that x-height was greater than the the actual (rendered)
1013+
# table. However, that x-height was greater than the actual (rendered)
10141014
# x-height by a factor of 1.771484375 (at font size 12, DPI 100 and hinting
10151015
# type 32). Now that we're using the rendered x-height, some font constants
10161016
# have been increased by the same factor to compensate.

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3522,7 +3522,7 @@ def inverse(self, values):
35223522
- If iterable, must be of length `n_components`. Each element can be a
35233523
scalar or array-like and is mapped through the corresponding norm.
35243524
- If structured array, must have `n_components` fields. Each field
3525-
is mapped through the the corresponding norm.
3525+
is mapped through the corresponding norm.
35263526
35273527
"""
35283528
values = self._iterable_components_in_data(values, self.n_components)

0 commit comments

Comments
 (0)