Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
Closed
Milestone
Description
Summary
Reviewinghttps://github.com/matplotlib/matplotlib/pull/25359/files#diff-49ee499471e3397e95aa265c6694a643c8c16c625c700da06b9c3c58db69fc52 I noted that an annoying part is just looking at the codepoint values. One idea to improve readability would be to replace lines such as
(0x0393,0x03a9,'bfit',0x1d71E),# \Gamma-\Omega
by
("\N{GREEK CAPITAL LETTER GAMMA}","\N{GREEK CAPITAL LETTER OMEGA}","bfit","\N{MATHEMATICAL BOLD ITALIC CAPITAL GAMMA}"),
which seems much more self-documenting (and adapting the table reading code to support that seems easy enough and have negligible cost -- just a matter of calling ord() in a few places).
Proposed fix
No response