Skip to content

Commit

Permalink
Merge pull request matplotlib#26844 from meeseeksmachine/auto-backpor…
Browse files Browse the repository at this point in the history
…t-of-pr-26843-on-v3.8.x

Backport PR matplotlib#26843 on branch v3.8.x (DOC: Use ax.xaxis rather ax.get_xaxis())
  • Loading branch information
rcomer authored Sep 20, 2023
2 parents 325aa89 + 0c43cf8 commit bf64c03
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 bf64c03

Please sign in to comment.