diff --git a/lib/matplotlib/_mathtext.py b/lib/matplotlib/_mathtext.py index ae230703faed..22e587e89e0f 100644 --- a/lib/matplotlib/_mathtext.py +++ b/lib/matplotlib/_mathtext.py @@ -470,60 +470,40 @@ def _get_glyph(self, fontname: str, font_class: str, else: return self._stix_fallback._get_glyph(fontname, font_class, sym) - # The Bakoma fonts contain many pre-sized alternatives for the - # delimiters. The AutoSizedChar class will use these alternatives - # and select the best (closest sized) glyph. + # The Bakoma fonts contain many pre-sized alternatives for the delimiters. The + # Auto(Height|Width)Char classes will use these alternatives and select the best + # (closest sized) glyph. + _latex_sizes = ('big', 'Big', 'bigg', 'Bigg') _size_alternatives = { - '(': [('rm', '('), ('ex', '\xa1'), ('ex', '\xb3'), - ('ex', '\xb5'), ('ex', '\xc3')], - ')': [('rm', ')'), ('ex', '\xa2'), ('ex', '\xb4'), - ('ex', '\xb6'), ('ex', '\x21')], - '{': [('cal', '{'), ('ex', '\xa9'), ('ex', '\x6e'), - ('ex', '\xbd'), ('ex', '\x28')], - '}': [('cal', '}'), ('ex', '\xaa'), ('ex', '\x6f'), - ('ex', '\xbe'), ('ex', '\x29')], - # The fourth size of '[' is mysteriously missing from the BaKoMa - # font, so I've omitted it for both '[' and ']' - '[': [('rm', '['), ('ex', '\xa3'), ('ex', '\x68'), - ('ex', '\x22')], - ']': [('rm', ']'), ('ex', '\xa4'), ('ex', '\x69'), - ('ex', '\x23')], - r'\lfloor': [('ex', '\xa5'), ('ex', '\x6a'), - ('ex', '\xb9'), ('ex', '\x24')], - r'\rfloor': [('ex', '\xa6'), ('ex', '\x6b'), - ('ex', '\xba'), ('ex', '\x25')], - r'\lceil': [('ex', '\xa7'), ('ex', '\x6c'), - ('ex', '\xbb'), ('ex', '\x26')], - r'\rceil': [('ex', '\xa8'), ('ex', '\x6d'), - ('ex', '\xbc'), ('ex', '\x27')], - r'\langle': [('ex', '\xad'), ('ex', '\x44'), - ('ex', '\xbf'), ('ex', '\x2a')], - r'\rangle': [('ex', '\xae'), ('ex', '\x45'), - ('ex', '\xc0'), ('ex', '\x2b')], - r'\__sqrt__': [('ex', '\x70'), ('ex', '\x71'), - ('ex', '\x72'), ('ex', '\x73')], - r'\backslash': [('ex', '\xb2'), ('ex', '\x2f'), - ('ex', '\xc2'), ('ex', '\x2d')], - r'/': [('rm', '/'), ('ex', '\xb1'), ('ex', '\x2e'), - ('ex', '\xcb'), ('ex', '\x2c')], - r'\widehat': [('rm', '\x5e'), ('ex', '\x62'), ('ex', '\x63'), - ('ex', '\x64')], - r'\widetilde': [('rm', '\x7e'), ('ex', '\x65'), ('ex', '\x66'), - ('ex', '\x67')], - r'<': [('cal', 'h'), ('ex', 'D')], - r'>': [('cal', 'i'), ('ex', 'E')] - } + '(': [('rm', '('), *[('ex', fr'\__parenleft{s}__') for s in _latex_sizes]], + ')': [('rm', ')'), *[('ex', fr'\__parenright{s}__') for s in _latex_sizes]], + '{': [('ex', fr'\__braceleft{s}__') for s in _latex_sizes], + '}': [('ex', fr'\__braceright{s}__') for s in _latex_sizes], + '[': [('rm', '['), *[('ex', fr'\__bracketleft{s}__') for s in _latex_sizes]], + ']': [('rm', ']'), *[('ex', fr'\__bracketright{s}__') for s in _latex_sizes]], + '<': [('cal', r'\__angbracketleft__'), + *[('ex', fr'\__angbracketleft{s}__') for s in _latex_sizes]], + '>': [('cal', r'\__angbracketright__'), + *[('ex', fr'\__angbracketright{s}__') for s in _latex_sizes]], + r'\lfloor': [('ex', fr'\__floorleft{s}__') for s in _latex_sizes], + r'\rfloor': [('ex', fr'\__floorright{s}__') for s in _latex_sizes], + r'\lceil': [('ex', fr'\__ceilingleft{s}__') for s in _latex_sizes], + r'\rceil': [('ex', fr'\__ceilingright{s}__') for s in _latex_sizes], + r'\__sqrt__': [('ex', fr'\__radical{s}__') for s in _latex_sizes], + r'\backslash': [('ex', fr'\__backslash{s}__') for s in _latex_sizes], + r'/': [('rm', '/'), *[('ex', fr'\__slash{s}__') for s in _latex_sizes]], + r'\widehat': [('rm', '\x5e'), ('ex', r'\__hatwide__'), ('ex', r'\__hatwider__'), + ('ex', r'\__hatwidest__')], + r'\widetilde': [('rm', '\x7e'), ('ex', r'\__tildewide__'), + ('ex', r'\__tildewider__'), ('ex', r'\__tildewidest__')], + } - for alias, target in [(r'\leftparen', '('), - (r'\rightparen', ')'), - (r'\leftbrace', '{'), - (r'\rightbrace', '}'), - (r'\leftbracket', '['), - (r'\rightbracket', ']'), - (r'\{', '{'), - (r'\}', '}'), - (r'\[', '['), - (r'\]', ']')]: + for alias, target in [(r'\leftparen', '('), (r'\rightparen', ')'), + (r'\leftbrace', '{'), (r'\rightbrace', '}'), + (r'\leftbracket', '['), (r'\rightbracket', ']'), + (r'\langle', '<'), (r'\rangle', '>'), + (r'\{', '{'), (r'\}', '}'), + (r'\[', '['), (r'\]', ']')]: _size_alternatives[alias] = _size_alternatives[target] def get_sized_alternatives_for_symbol(self, fontname: str, @@ -1524,7 +1504,7 @@ class AutoHeightChar(Hlist): """ def __init__(self, c: str, height: float, depth: float, state: ParserState, - always: bool = False, factor: float | None = None): + factor: float | None = None): alternatives = state.fontset.get_sized_alternatives_for_symbol( state.font, c) @@ -1563,7 +1543,7 @@ class AutoWidthChar(Hlist): always just return a scaled version of the glyph. """ - def __init__(self, c: str, width: float, state: ParserState, always: bool = False, + def __init__(self, c: str, width: float, state: ParserState, char_class: type[Char] = Char): alternatives = state.fontset.get_sized_alternatives_for_symbol( state.font, c) @@ -2712,7 +2692,7 @@ def sqrt(self, toks: ParseResults) -> T.Any: # the height so it doesn't seem cramped height = body.height - body.shift_amount + thickness * 5.0 depth = body.depth + body.shift_amount - check = AutoHeightChar(r'\__sqrt__', height, depth, state, always=True) + check = AutoHeightChar(r'\__sqrt__', height, depth, state) height = check.height - check.shift_amount depth = check.depth + check.shift_amount diff --git a/lib/matplotlib/_mathtext_data.py b/lib/matplotlib/_mathtext_data.py index 5819ee743044..2174d8761307 100644 --- a/lib/matplotlib/_mathtext_data.py +++ b/lib/matplotlib/_mathtext_data.py @@ -33,6 +33,75 @@ '{' : ('cmex10', 0xa9), '}' : ('cmex10', 0xaa), + '\\__angbracketleft__' : ('cmsy10', 0x68), + '\\__angbracketright__' : ('cmsy10', 0x69), + '\\__angbracketleftbig__' : ('cmex10', 0xad), + '\\__angbracketleftBig__' : ('cmex10', 0x44), + '\\__angbracketleftbigg__' : ('cmex10', 0xbf), + '\\__angbracketleftBigg__' : ('cmex10', 0x2a), + '\\__angbracketrightbig__' : ('cmex10', 0xae), + '\\__angbracketrightBig__' : ('cmex10', 0x45), + '\\__angbracketrightbigg__' : ('cmex10', 0xc0), + '\\__angbracketrightBigg__' : ('cmex10', 0x2b), + '\\__backslashbig__' : ('cmex10', 0xb2), + '\\__backslashBig__' : ('cmex10', 0x2f), + '\\__backslashbigg__' : ('cmex10', 0xc2), + '\\__backslashBigg__' : ('cmex10', 0x2d), + '\\__braceleftbig__' : ('cmex10', 0xa9), + '\\__braceleftBig__' : ('cmex10', 0x6e), + '\\__braceleftbigg__' : ('cmex10', 0xbd), + '\\__braceleftBigg__' : ('cmex10', 0x28), + '\\__bracerightbig__' : ('cmex10', 0xaa), + '\\__bracerightBig__' : ('cmex10', 0x6f), + '\\__bracerightbigg__' : ('cmex10', 0xbe), + '\\__bracerightBigg__' : ('cmex10', 0x29), + '\\__bracketleftbig__' : ('cmex10', 0xa3), + '\\__bracketleftBig__' : ('cmex10', 0x68), + '\\__bracketleftbigg__' : ('cmex10', 0x2219), + '\\__bracketleftBigg__' : ('cmex10', 0x22), + '\\__bracketrightbig__' : ('cmex10', 0xa4), + '\\__bracketrightBig__' : ('cmex10', 0x69), + '\\__bracketrightbigg__' : ('cmex10', 0xb8), + '\\__bracketrightBigg__' : ('cmex10', 0x23), + '\\__ceilingleftbig__' : ('cmex10', 0xa7), + '\\__ceilingleftBig__' : ('cmex10', 0x6c), + '\\__ceilingleftbigg__' : ('cmex10', 0xbb), + '\\__ceilingleftBigg__' : ('cmex10', 0x26), + '\\__ceilingrightbig__' : ('cmex10', 0xa8), + '\\__ceilingrightBig__' : ('cmex10', 0x6d), + '\\__ceilingrightbigg__' : ('cmex10', 0xbc), + '\\__ceilingrightBigg__' : ('cmex10', 0x27), + '\\__floorleftbig__' : ('cmex10', 0xa5), + '\\__floorleftBig__' : ('cmex10', 0x6a), + '\\__floorleftbigg__' : ('cmex10', 0xb9), + '\\__floorleftBigg__' : ('cmex10', 0x24), + '\\__floorrightbig__' : ('cmex10', 0xa6), + '\\__floorrightBig__' : ('cmex10', 0x6b), + '\\__floorrightbigg__' : ('cmex10', 0xba), + '\\__floorrightBigg__' : ('cmex10', 0x25), + '\\__hatwide__' : ('cmex10', 0x62), + '\\__hatwider__' : ('cmex10', 0x63), + '\\__hatwidest__' : ('cmex10', 0x64), + '\\__parenleftbig__' : ('cmex10', 0xa1), + '\\__parenleftBig__' : ('cmex10', 0xb3), + '\\__parenleftbigg__' : ('cmex10', 0xb5), + '\\__parenleftBigg__' : ('cmex10', 0xc3), + '\\__parenrightbig__' : ('cmex10', 0xa2), + '\\__parenrightBig__' : ('cmex10', 0xb4), + '\\__parenrightbigg__' : ('cmex10', 0xb6), + '\\__parenrightBigg__' : ('cmex10', 0x21), + '\\__radicalbig__' : ('cmex10', 0x70), + '\\__radicalBig__' : ('cmex10', 0x71), + '\\__radicalbigg__' : ('cmex10', 0x72), + '\\__radicalBigg__' : ('cmex10', 0x73), + '\\__slashbig__' : ('cmex10', 0xb1), + '\\__slashBig__' : ('cmex10', 0x2e), + '\\__slashbigg__' : ('cmex10', 0xc1), + '\\__slashBigg__' : ('cmex10', 0x2c), + '\\__tildewide__' : ('cmex10', 0x65), + '\\__tildewider__' : ('cmex10', 0x66), + '\\__tildewidest__' : ('cmex10', 0x67), + ',' : ('cmmi10', 0x3b), '.' : ('cmmi10', 0x3a), '/' : ('cmmi10', 0x3d), @@ -1109,6 +1178,8 @@ '|' : 0x2016, '}' : 0x7d, } +tex2uni['__angbracketleft__'] = tex2uni['langle'] +tex2uni['__angbracketright__'] = tex2uni['rangle'] # Each element is a 4-tuple of the form: # src_start, src_end, dst_font, dst_start diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.pdf index 4de2c2cff9cc..aa24d432e572 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.pdf and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.png index 9bc3c8a86083..eccbdafc5d30 100644 Binary files a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.png and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.svg index 3972399557bd..882330693a4d 100644 --- a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.svg +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_37.svg @@ -1,12 +1,23 @@ - - + + + + + + 2025-04-17T07:12:28.193802 + image/svg+xml + + + Matplotlib v3.11.0.dev685+gf017a0e547.d20250417, https://matplotlib.org/ + + + + + - + @@ -15,794 +26,826 @@ L 378 54 L 378 0 L 0 0 z -" style="fill:#ffffff;"/> +" style="fill: #ffffff"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.pdf new file mode 100644 index 000000000000..cee47b29c5d1 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.png new file mode 100644 index 000000000000..be906ad6a705 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.svg new file mode 100644 index 000000000000..60376682522d --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_84.svg @@ -0,0 +1,893 @@ + + + + + + + + 2025-04-24T03:43:09.433970 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.pdf new file mode 100644 index 000000000000..1af6cbe90e08 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.png new file mode 100644 index 000000000000..c4c4f8d23d14 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.svg new file mode 100644 index 000000000000..df715b83ed36 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_85.svg @@ -0,0 +1,746 @@ + + + + + + + + 2025-04-24T03:43:09.543437 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.pdf new file mode 100644 index 000000000000..b30711cd28ec Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.png new file mode 100644 index 000000000000..dc9f52c21e29 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.svg new file mode 100644 index 000000000000..22250f73ff25 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_86.svg @@ -0,0 +1,817 @@ + + + + + + + + 2025-04-24T03:43:09.638305 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.pdf new file mode 100644 index 000000000000..02218291cc60 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.png new file mode 100644 index 000000000000..94137769b60b Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.svg new file mode 100644 index 000000000000..115c0332bb07 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_87.svg @@ -0,0 +1,981 @@ + + + + + + + + 2025-04-24T03:43:09.733818 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.pdf new file mode 100644 index 000000000000..3489efd8a765 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.png new file mode 100644 index 000000000000..3eac09d6b395 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.svg new file mode 100644 index 000000000000..8a1073dc9e37 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_88.svg @@ -0,0 +1,708 @@ + + + + + + + + 2025-04-24T03:43:09.855825 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.pdf new file mode 100644 index 000000000000..d69b980b05fc Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.png new file mode 100644 index 000000000000..41169a2b4e23 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.svg new file mode 100644 index 000000000000..7a31ce42c628 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_cm_89.svg @@ -0,0 +1,708 @@ + + + + + + + + 2025-04-24T03:43:09.960635 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.pdf new file mode 100644 index 000000000000..1294d153aee8 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.png new file mode 100644 index 000000000000..80d6ae1f6204 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.svg new file mode 100644 index 000000000000..c990e978ca8f --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_84.svg @@ -0,0 +1,524 @@ + + + + + + + + 2025-04-24T03:43:12.368991 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.pdf new file mode 100644 index 000000000000..62db8dc5ef38 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.png new file mode 100644 index 000000000000..2b59a20af967 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.svg new file mode 100644 index 000000000000..b0380ea935ca --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_85.svg @@ -0,0 +1,493 @@ + + + + + + + + 2025-04-24T03:43:12.461182 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.pdf new file mode 100644 index 000000000000..efa5502b359c Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.png new file mode 100644 index 000000000000..b66570472e9e Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.svg new file mode 100644 index 000000000000..315aa905ce6f --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_86.svg @@ -0,0 +1,473 @@ + + + + + + + + 2025-04-24T03:43:12.533815 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.pdf new file mode 100644 index 000000000000..f704a637c69f Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.png new file mode 100644 index 000000000000..ddcbebd8598e Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.svg new file mode 100644 index 000000000000..73908c8d41c3 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_87.svg @@ -0,0 +1,722 @@ + + + + + + + + 2025-04-24T03:43:12.646639 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.pdf new file mode 100644 index 000000000000..7ab8d9f903b7 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.png new file mode 100644 index 000000000000..5723f24db690 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.svg new file mode 100644 index 000000000000..c1fd4039b8e8 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_88.svg @@ -0,0 +1,473 @@ + + + + + + + + 2025-04-24T03:43:12.722885 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.pdf new file mode 100644 index 000000000000..8337b2fb2db3 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.png new file mode 100644 index 000000000000..d62ba827edb1 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.svg new file mode 100644 index 000000000000..ad6bee733572 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavusans_89.svg @@ -0,0 +1,473 @@ + + + + + + + + 2025-04-24T03:43:12.794074 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.pdf new file mode 100644 index 000000000000..91f4fbe94f80 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.png new file mode 100644 index 000000000000..e4e758647f99 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.svg new file mode 100644 index 000000000000..91a47facc5bc --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_84.svg @@ -0,0 +1,556 @@ + + + + + + + + 2025-04-24T03:43:13.321537 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.pdf new file mode 100644 index 000000000000..dc61df845f67 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.png new file mode 100644 index 000000000000..2bd026d09451 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.svg new file mode 100644 index 000000000000..001146590e39 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_85.svg @@ -0,0 +1,525 @@ + + + + + + + + 2025-04-24T03:43:13.393859 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.pdf new file mode 100644 index 000000000000..06ae62b7afa1 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.png new file mode 100644 index 000000000000..787e444274a0 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.svg new file mode 100644 index 000000000000..7d48a5ef2e24 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_86.svg @@ -0,0 +1,505 @@ + + + + + + + + 2025-04-24T03:43:13.463692 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.pdf new file mode 100644 index 000000000000..1fc0182cc8bb Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.png new file mode 100644 index 000000000000..05c45f083b78 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.svg new file mode 100644 index 000000000000..7a218f25d2a1 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_87.svg @@ -0,0 +1,754 @@ + + + + + + + + 2025-04-24T03:43:13.543742 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.pdf new file mode 100644 index 000000000000..bec9ca2f4484 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.png new file mode 100644 index 000000000000..001bf0ce0621 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.svg new file mode 100644 index 000000000000..6ca22111718b --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_88.svg @@ -0,0 +1,505 @@ + + + + + + + + 2025-04-24T03:43:13.623856 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.pdf new file mode 100644 index 000000000000..bbde0db07876 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.png new file mode 100644 index 000000000000..cb2ee4dd266c Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.svg new file mode 100644 index 000000000000..4665267466f6 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_dejavuserif_89.svg @@ -0,0 +1,505 @@ + + + + + + + + 2025-04-24T03:43:13.690279 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.pdf new file mode 100644 index 000000000000..e9fa3965e293 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.png new file mode 100644 index 000000000000..34670ad88af4 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.svg new file mode 100644 index 000000000000..8e00e7c6bf12 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_84.svg @@ -0,0 +1,603 @@ + + + + + + + + 2025-04-24T03:43:10.928944 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.pdf new file mode 100644 index 000000000000..61da9e152bba Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.png new file mode 100644 index 000000000000..55e4459de56a Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.svg new file mode 100644 index 000000000000..2151f6b948a4 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_85.svg @@ -0,0 +1,580 @@ + + + + + + + + 2025-04-24T03:43:11.005424 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.pdf new file mode 100644 index 000000000000..4921cd5146c0 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.png new file mode 100644 index 000000000000..d414afebba51 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.svg new file mode 100644 index 000000000000..60375aa5aa6f --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_86.svg @@ -0,0 +1,556 @@ + + + + + + + + 2025-04-24T03:43:11.070592 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.pdf new file mode 100644 index 000000000000..6a878f5198f3 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.png new file mode 100644 index 000000000000..2edd4de6afaf Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.svg new file mode 100644 index 000000000000..410d4d0bd55a --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_87.svg @@ -0,0 +1,789 @@ + + + + + + + + 2025-04-24T03:43:11.141311 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.pdf new file mode 100644 index 000000000000..f5ddc881f67a Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.png new file mode 100644 index 000000000000..3db900a82eba Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.svg new file mode 100644 index 000000000000..8348006b1ad3 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_88.svg @@ -0,0 +1,558 @@ + + + + + + + + 2025-04-24T03:43:11.222104 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.pdf new file mode 100644 index 000000000000..34c617346c2a Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.png new file mode 100644 index 000000000000..e6c3f1eec9d2 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.svg new file mode 100644 index 000000000000..18a771280089 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stix_89.svg @@ -0,0 +1,558 @@ + + + + + + + + 2025-04-24T03:43:11.296805 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.pdf new file mode 100644 index 000000000000..9872e48fe229 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.png new file mode 100644 index 000000000000..bd39a3a1529f Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.svg new file mode 100644 index 000000000000..c75f97a3bcdc --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_84.svg @@ -0,0 +1,523 @@ + + + + + + + + 2025-04-24T03:43:11.779109 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.pdf new file mode 100644 index 000000000000..220fdacd8b9e Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.png new file mode 100644 index 000000000000..ec14a98818a8 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.svg new file mode 100644 index 000000000000..28f58c159f70 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_85.svg @@ -0,0 +1,500 @@ + + + + + + + + 2025-04-24T03:43:11.964267 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.pdf new file mode 100644 index 000000000000..d8b2ba32a37b Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.png new file mode 100644 index 000000000000..a30fe466eeaf Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.svg new file mode 100644 index 000000000000..d86cd17cb281 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_86.svg @@ -0,0 +1,476 @@ + + + + + + + + 2025-04-24T03:43:12.053339 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.pdf new file mode 100644 index 000000000000..298a93fc9374 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.png new file mode 100644 index 000000000000..44012ca36d85 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.svg new file mode 100644 index 000000000000..87211a5d08bb --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_87.svg @@ -0,0 +1,709 @@ + + + + + + + + 2025-04-24T03:43:12.140349 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.pdf new file mode 100644 index 000000000000..590b0d6bee65 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.png new file mode 100644 index 000000000000..54e9f0bde010 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.svg new file mode 100644 index 000000000000..ab6485ab1055 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_88.svg @@ -0,0 +1,478 @@ + + + + + + + + 2025-04-24T03:43:12.219314 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.pdf b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.pdf new file mode 100644 index 000000000000..996977016ec5 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.pdf differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.png b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.png new file mode 100644 index 000000000000..1271db4625c7 Binary files /dev/null and b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.png differ diff --git a/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.svg b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.svg new file mode 100644 index 000000000000..5b1529ab7171 --- /dev/null +++ b/lib/matplotlib/tests/baseline_images/test_mathtext/mathtext_stixsans_89.svg @@ -0,0 +1,478 @@ + + + + + + + + 2025-04-24T03:43:12.293664 + image/svg+xml + + + Matplotlib v3.11.0.dev693+g8bfd78f319.d20250424, https://matplotlib.org/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/lib/matplotlib/tests/test_mathtext.py b/lib/matplotlib/tests/test_mathtext.py index 9c0f8ee70c1f..14c724e62960 100644 --- a/lib/matplotlib/tests/test_mathtext.py +++ b/lib/matplotlib/tests/test_mathtext.py @@ -123,7 +123,16 @@ r'$,$ $.$ $1{,}234{, }567{ , }890$ and $1,234,567,890$', # github issue 5799 r'$\left(X\right)_{a}^{b}$', # github issue 7615 r'$\dfrac{\$100.00}{y}$', # github issue #1888 - r'$a=-b-c$' # github issue #28180 + r'$a=-b-c$', # github issue #28180 + # Check all AutoHeightChar substitutions. + *[ + r'$\left' + lc + r' M \middle/ ? \middle\backslash ? \right' + rc + ' ' + # Normal size. + r'\left' + lc + r' \frac{M}{B} \middle/ ? \middle\backslash ? \right' + rc + ' ' + # big size. + r'\left' + lc + r' \frac{\frac{M}{I}}{B} \middle/ ? \middle\backslash ? \right' + rc + ' ' + # bigg size. + r'\left' + lc + r' \frac{\frac{M}{I}}{\frac{B}{U}} \middle/ ? \middle\backslash ? \right' + rc + ' ' + # Big size. + r'\left' + lc + r'\frac{\frac{\frac{M}{I}}{N}}{\frac{\frac{B}{U}}{G}} \middle/ ? \middle\backslash ? \right' + rc + '$' # Bigg size. + for lc, rc in ['()', '[]', '<>', (r'\{', r'\}'), (r'\lfloor', r'\rfloor'), (r'\lceil', r'\rceil')] + ], ] # 'svgastext' tests switch svg output to embed text as text (rather than as # paths).