Skip to content

Commit cb79aea

Browse files
committed
Fix glyphs for angle brackets
1 parent bba391d commit cb79aea

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

lib/matplotlib/_mathtext.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,8 +433,8 @@ def _get_glyph(self, fontname, font_class, sym):
433433
('ex', '\x64')],
434434
r'\widetilde': [('rm', '\x7e'), ('ex', '\x65'), ('ex', '\x66'),
435435
('ex', '\x67')],
436-
r'<': [('cal', 'h'), ('ex', 'D')],
437-
r'>': [('cal', 'i'), ('ex', 'E')]
436+
r'<': [('cal', '\x68'), ('ex', '\x44')],
437+
r'>': [('cal', '\x69'), ('ex', '\x45')]
438438
}
439439

440440
for alias, target in [(r'\leftparen', '('),
@@ -443,6 +443,8 @@ def _get_glyph(self, fontname, font_class, sym):
443443
(r'\rightbrace', '}'),
444444
(r'\leftbracket', '['),
445445
(r'\rightbracket', ']'),
446+
(r'\langle', '<'),
447+
(r'\rangle', '>'),
446448
(r'\{', '{'),
447449
(r'\}', '}'),
448450
(r'\[', '['),

lib/matplotlib/mpl-data/matplotlibrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@
268268

269269
#font.serif: DejaVu Serif, Bitstream Vera Serif, Computer Modern Roman, New Century Schoolbook, Century Schoolbook L, Utopia, ITC Bookman, Bookman, Nimbus Roman No9 L, Times New Roman, Times, Palatino, Charter, serif
270270
#font.sans-serif: DejaVu Sans, Bitstream Vera Sans, Computer Modern Sans Serif, Lucida Grande, Verdana, Geneva, Lucid, Arial, Helvetica, Avant Garde, sans-serif
271-
#font.cursive: Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, Comic Neue, Comic Sans MS, cursive
271+
#font.cursive: cmsy10, Apple Chancery, Textile, Zapf Chancery, Sand, Script MT, Felipa, Comic Neue, Comic Sans MS, cursive
272272
#font.fantasy: Chicago, Charcoal, Impact, Western, Humor Sans, xkcd, fantasy
273273
#font.monospace: DejaVu Sans Mono, Bitstream Vera Sans Mono, Computer Modern Typewriter, Andale Mono, Nimbus Mono L, Courier New, Courier, Fixed, Terminal, monospace
274274

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy