From 89314c0289a74d55d8cfa70ab02d467b7cf34414 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Wed, 20 Sep 2023 17:17:45 +0200 Subject: [PATCH] DOC: Use ax.xaxis rather ax.get_xaxis() get_xaxis() is discouraged. --- 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.