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 9130caf

Browse filesBrowse files
star1327ptimhoffmQuLogic
authored
DOC: Add docstrings to get_usetex and set_usetex in ticker.py (#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 <quantum.analyst@gmail.com> --------- Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent b048f03 commit 9130caf
Copy full SHA for 9130caf

File tree

1 file changed

+2
-0
lines changed
Filter options

1 file changed

+2
-0
lines changed

‎lib/matplotlib/ticker.py

Copy file name to clipboardExpand all lines: lib/matplotlib/ticker.py
+2Lines changed: 2 additions & 0 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.