Skip to content

Commit 9130caf

Browse files
star1327ptimhoffmQuLogic
authored
DOC: Add docstrings to get_usetex and set_usetex in ticker.py (matplotlib#29642)
* DOC: Add docstrings to get_usetex and set_usetex in ticker.py * DOC: Removed excessive whitespaces in ticker.py * Update ticker.py * Update lib/matplotlib/ticker.py Co-authored-by: Elliott Sales de Andrade <[email protected]> --------- Co-authored-by: Tim Hoffmann <[email protected]> Co-authored-by: Elliott Sales de Andrade <[email protected]>
1 parent b048f03 commit 9130caf

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/ticker.py

+2
Original file line numberDiff line numberDiff line change
@@ -463,9 +463,11 @@ def __init__(self, useOffset=None, useMathText=None, useLocale=None, *,
463463
self.set_useLocale(useLocale)
464464

465465
def get_usetex(self):
466+
"""Return whether TeX's math mode is enabled for rendering."""
466467
return self._usetex
467468

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

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

0 commit comments

Comments
 (0)