Skip to content

Commit

Permalink
DOC: Use ax.xaxis rather ax.get_xaxis()
Browse files Browse the repository at this point in the history
get_xaxis() is discouraged.
  • Loading branch information
timhoffm committed Sep 20, 2023
1 parent f083989 commit 7720e0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/users/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7720e0f

Please sign in to comment.