8000 Merge pull request #13166 from anntzer/text · matplotlib/matplotlib@5a7e0ea · GitHub
[go: up one dir, main page]

Skip to content

Commit 5a7e0ea

Browse files
authored
Merge pull request #13166 from anntzer/text
Simplify Text.get_usetex.
2 parents 3f9464b + 7985672 commit 5a7e0ea

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

lib/matplotlib/text.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1224,16 +1224,8 @@ def set_usetex(self, usetex):
12241224
self.stale = True
12251225

12261226
def get_usetex(self):
1227-
"""
1228-
Return whether this `Text` object uses TeX for rendering.
1229-
1230-
If the user has not manually set this value, it defaults to
1231-
:rc:`text.usetex`.
1232-
"""
1233-
if self._usetex is None:
1234-
return rcParams['text.usetex']
1235-
else:
1236-
return self._usetex
1227+
"""Return whether this `Text` object uses TeX for rendering."""
1228+
return self._usetex
12371229

12381230
def set_fontname(self, fontname):
12391231
"""

0 commit comments

Comments
 (0)
0