Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 230a251

Browse filesBrowse files
authored
Merge pull request #11345 from matplotlib/revert-11255-text.latex.unicode
Revert "Deprecate text.latex.unicode."
2 parents 50b0e16 + 7d51f37 commit 230a251
Copy full SHA for 230a251

File tree

Expand file treeCollapse file tree

12 files changed

+17
-17
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

12 files changed

+17
-17
lines changed
Open diff view settings
Collapse file

‎doc/api/next_api_changes/2018-02-15-AL-deprecations.rst‎

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/2018-02-15-AL-deprecations.rst
-1Lines changed: 0 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,3 @@ The following classes, methods, functions, and attributes are deprecated:
3939

4040
The following rcParams are deprecated:
4141
- ``pgf.debug`` (the pgf backend relies on logging),
42-
- ``text.latex.unicode``,
Collapse file

‎doc/api/next_api_changes/2018-05-15-AL.rst‎

Copy file name to clipboardExpand all lines: doc/api/next_api_changes/2018-05-15-AL.rst
-8Lines changed: 0 additions & 8 deletions
This file was deleted.
Collapse file

‎examples/text_labels_and_annotations/tex_demo.py‎

Copy file name to clipboardExpand all lines: examples/text_labels_and_annotations/tex_demo.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
import numpy as np
1818
import matplotlib
1919
matplotlib.rcParams['text.usetex'] = True
20+
matplotlib.rcParams['text.latex.unicode'] = True
2021
import matplotlib.pyplot as plt
2122

2223

Collapse file

‎examples/text_labels_and_annotations/usetex_baseline_test.py‎

Copy file name to clipboardExpand all lines: examples/text_labels_and_annotations/usetex_baseline_test.py
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
from matplotlib import rcParams
1313
rcParams['text.usetex'] = True
14+
rcParams['text.latex.unicode'] = True
1415

1516

1617
class Axes(maxes.Axes):
Collapse file

‎lib/matplotlib/__init__.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/__init__.py
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,8 +813,7 @@ def gen_candidates():
813813
# do NOT include in _all_deprecated
814814
_deprecated_set = {'axes.hold',
815815
'backend.qt4',
816-
'backend.qt5',
817-
'text.latex.unicode'}
816+
'backend.qt5'}
818817

819818
_all_deprecated = set(itertools.chain(
820819
_deprecated_ignore_map, _deprecated_map, _obsolete_set))
Collapse file

‎lib/matplotlib/mpl-data/stylelib/_classic_test.mplstyle‎

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/_classic_test.mplstyle
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ text.usetex : False # use latex for all text handling. The following fo
109109
# If another font is desired which can loaded using the
110110
# LaTeX \usepackage command, please inquire at the
111111
# matplotlib mailing list
112+
text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling
113+
# unicode strings.
112114
text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES
113115
# AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP
114116
# IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO.
Collapse file

‎lib/matplotlib/mpl-data/stylelib/classic.mplstyle‎

Copy file name to clipboardExpand all lines: lib/matplotlib/mpl-data/stylelib/classic.mplstyle
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ text.usetex : False # use latex for all text handling. The following fo
111111
# If another font is desired which can loaded using the
112112
# LaTeX \usepackage command, please inquire at the
113113
# matplotlib mailing list
114+
text.latex.unicode : False # use "ucs" and "inputenc" LaTeX packages for handling
115+
# unicode strings.
114116
text.latex.preamble : # IMPROPER USE OF THIS FEATURE WILL LEAD TO LATEX FAILURES
115117
# AND IS THEREFORE UNSUPPORTED. PLEASE DO NOT ASK FOR HELP
116118
# IF THIS FEATURE DOES NOT DO WHAT YOU EXPECT IT TO.
Collapse file

‎lib/matplotlib/rcsetup.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/rcsetup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ def _validate_linestyle(ls):
11001100
# text props
11011101
'text.color': ['black', validate_color],
11021102
'text.usetex': [False, validate_bool],
1103-
'text.latex.unicode': [True, validate_bool],
1103+
'text.latex.unicode': [False, validate_bool],
11041104
'text.latex.preamble': [[''], validate_stringlist],
11051105
'text.latex.preview': [False, validate_bool],
11061106
'text.dvipnghack': [None, validate_bool_maybe_none],
Collapse file

‎lib/matplotlib/tests/test_backend_ps.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_backend_ps.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@
3232
needs_ghostscript(
3333
('ps', False, {'ps.usedistiller': 'ghostscript'})),
3434
needs_usetex(needs_ghostscript(
35-
('ps', False, {'text.usetex': True}))),
35+
('ps', False, {'text.latex.unicode': True, 'text.usetex': True}))),
3636
('eps', False, {}),
3737
('eps', True, {'ps.useafm': True}),
3838
needs_usetex(needs_ghostscript(
39-
('eps', False, {'text.usetex': True}))),
39+
('eps', False, {'text.latex.unicode': True, 'text.usetex': True}))),
4040
], ids=[
4141
'ps',
4242
'ps with distiller',
Collapse file

‎lib/matplotlib/tests/test_rcparams.py‎

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_rcparams.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ def test_if_rctemplate_is_up_to_date():
468468
continue
469469
if k in deprecated:
470470
continue
471-
if k.startswith(("text.latex.unicode", "verbose.")):
471+
if "verbose" in k:
472472
continue
473473
found = False
474474
for line in rclines:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.