From ed490f7e5b2cec6c0f3f82a5d3e502c3c41e0f71 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 30 May 2023 15:16:47 +0200 Subject: [PATCH] Correct Unicode for [lg]napprox --- doc/users/next_whats_new/mathtext_relation_operators.rst | 9 +++++++++ lib/matplotlib/_mathtext_data.py | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 doc/users/next_whats_new/mathtext_relation_operators.rst diff --git a/doc/users/next_whats_new/mathtext_relation_operators.rst b/doc/users/next_whats_new/mathtext_relation_operators.rst new file mode 100644 index 000000000000..7bc7f47bdddc --- /dev/null +++ b/doc/users/next_whats_new/mathtext_relation_operators.rst @@ -0,0 +1,9 @@ +``mathtext`` operators +---------------------- + +There has been a number of operators added and corrected when a Unicode font is used. +In addition, correct spacing has been added to a number of the previous operators. +Especially, the characters used for ``\gnapprox``, ``\lnapprox``, ``\leftangle``, and +``\rightangle`` have been corrected. + +All supported operators can be seen at :ref:`mathtext`. diff --git a/lib/matplotlib/_mathtext_data.py b/lib/matplotlib/_mathtext_data.py index a43c834ea31a..8ed969fb6002 100644 --- a/lib/matplotlib/_mathtext_data.py +++ b/lib/matplotlib/_mathtext_data.py @@ -489,8 +489,8 @@ 'succnapprox' : 0x2aba, 'subsetneqq' : 0x2acb, 'supsetneqq' : 0x2acc, - 'lnapprox' : 0x2ab9, - 'gnapprox' : 0x2aba, + 'lnapprox' : 0x2a89, + 'gnapprox' : 0x2a8a, 'longleftarrow' : 0x27f5, 'longrightarrow' : 0x27f6, 'longleftrightarrow' : 0x27f7,