From 0c43cf8c3d0612f7c3e4e4ca2457bd4e20e0aa88 Mon Sep 17 00:00:00 2001 From: Ruth Comer <10599679+rcomer@users.noreply.github.com> Date: Wed, 20 Sep 2023 16:58:26 +0100 Subject: [PATCH] Backport PR #26843: DOC: Use ax.xaxis rather ax.get_xaxis() --- doc/users/faq.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/users/faq.rst b/doc/users/faq.rst index 46084ec4c6c6..c4e133d56d73 100644 --- a/doc/users/faq.rst +++ b/doc/users/faq.rst @@ -123,7 +123,7 @@ The default formatter will use an offset to reduce the length of the ticklabels. To turn this feature off on a per-axis basis:: - ax.get_xaxis().get_major_formatter().set_useOffset(False) + ax.xaxis.get_major_formatter().set_useOffset(False) set :rc:`axes.formatter.useoffset`, or use a different formatter. See :mod:`~matplotlib.ticker` for details.