8000 Backport PR #29642: DOC: Add docstrings to get_usetex and set_usetex … · meeseeksmachine/matplotlib@af95fef · GitHub
[go: up one dir, main page]

Skip to content

Commit af95fef

Browse files
star1327pmeeseeksmachine
authored andcommitted
Backport PR matplotlib#29642: DOC: Add docstrings to get_usetex and set_usetex in ticker.py
1 parent 73a28c9 commit af95fef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/ticker.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,11 @@ def __init__(self, useOffset=None, useMathText=None, useLocale=None, *,
465465
self.set_useLocale(useLocale)
466466

467467
def get_usetex(self):
468+
"""Return whether TeX's math mode is enabled for rendering."""
468469
return self._usetex
469470

470471
def set_usetex(self, val):
472+
"""Set whether to use TeX's math mode for rendering numbers in the formatter."""
471473
self._usetex = mpl._val_or_rc(val, 'text.usetex')
472474

473475
usetex = property(fget=get_usetex, fset=set_usetex)

0 commit comments

Comments
 (0)
0