From 255a2126bf2bc385d8144e9b6e90e4fdc100ac0a Mon Sep 17 00:00:00 2001 From: "Christine P. Chai" Date: Mon, 17 Feb 2025 14:34:29 -0800 Subject: [PATCH 1/4] DOC: Add docstrings to get_usetex and set_usetex in ticker.py --- lib/matplotlib/ticker.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 4eb9a2e66c01..2085eecb0ac5 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -463,9 +463,12 @@ def __init__(self, useOffset=None, useMathText=None, useLocale=None, *, self.set_useLocale(useLocale) def get_usetex(self): + """Return whether TeX's math mode is enabled for rendering.""" return self._usetex def set_usetex(self, val): + """Set whether to use TeX's math mode for rendering + the numbers in the formatter.""" self._usetex = mpl._val_or_rc(val, 'text.usetex') usetex = property(fget=get_usetex, fset=set_usetex) From ef33787a0413fffb9580434c3515e0dab6e8ad15 Mon Sep 17 00:00:00 2001 From: "Christine P. Chai" Date: Tue, 18 Feb 2025 10:39:18 -0800 Subject: [PATCH 2/4] DOC: Removed excessive whitespaces in ticker.py --- lib/matplotlib/ticker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 2085eecb0ac5..3111de279be0 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -463,11 +463,11 @@ def __init__(self, useOffset=None, useMathText=None, useLocale=None, *, self.set_useLocale(useLocale) def get_usetex(self): - """Return whether TeX's math mode is enabled for rendering.""" + """Return whether TeX's math mode is enabled for rendering.""" return self._usetex def set_usetex(self, val): - """Set whether to use TeX's math mode for rendering + """Set whether to use TeX's math mode for rendering the numbers in the formatter.""" self._usetex = mpl._val_or_rc(val, 'text.usetex') From 35f04572e7e929cbd003d3be90a8622950f8ac85 Mon Sep 17 00:00:00 2001 From: "Christine P. Chai" Date: Tue, 18 Feb 2025 10:42:47 -0800 Subject: [PATCH 3/4] Update ticker.py --- lib/matplotlib/ticker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 3111de279be0..32beef4af911 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -467,8 +467,10 @@ def get_usetex(self): return self._usetex def set_usetex(self, val): - """Set whether to use TeX's math mode for rendering - the numbers in the formatter.""" + """ + Set whether to use TeX's math mode for rendering + the numbers in the formatter. + """ self._usetex = mpl._val_or_rc(val, 'text.usetex') usetex = property(fget=get_usetex, fset=set_usetex) From 48d90c2bcf6b18893d4c4cc5e1fae2e4dfab7230 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 22 Feb 2025 10:53:55 +0100 Subject: [PATCH 4/4] Update lib/matplotlib/ticker.py Co-authored-by: Elliott Sales de Andrade --- lib/matplotlib/ticker.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/matplotlib/ticker.py b/lib/matplotlib/ticker.py index 32beef4af911..4c33e8c9afc5 100644 --- a/lib/matplotlib/ticker.py +++ b/lib/matplotlib/ticker.py @@ -467,10 +467,7 @@ def get_usetex(self): return self._usetex def set_usetex(self, val): - """ - Set whether to use TeX's math mode for rendering - the numbers in the formatter. - """ + """Set whether to use TeX's math mode for rendering numbers in the formatter.""" self._usetex = mpl._val_or_rc(val, 'text.usetex') usetex = property(fget=get_usetex, fset=set_usetex)