Skip to content

Commit 0c43cf8

Browse files
rcomermeeseeksmachine
authored andcommitted
Backport PR #26843: DOC: Use ax.xaxis rather ax.get_xaxis()
1 parent 325aa89 commit 0c43cf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ The default formatter will use an offset to reduce
123123
the length of the ticklabels. To turn this feature
124124
off on a per-axis basis::
125125

126-
ax.get_xaxis().get_major_formatter().set_useOffset(False)
126+
ax.xaxis.get_major_formatter().set_useOffset(False)
127127

128128
set :rc:`axes.formatter.useoffset`, or use a different
129129
formatter. See :mod:`~matplotlib.ticker` for details.

0 commit comments

Comments
 (0)