Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf64c03

Browse files
authored
Merge pull request #26844 from meeseeksmachine/auto-backport-of-pr-26843-on-v3.8.x
Backport PR #26843 on branch v3.8.x (DOC: Use ax.xaxis rather ax.get_xaxis())
2 parents 325aa89 + 0c43cf8 commit bf64c03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/users/faq.rst

Lines changed: 1 addition & 1 deletion
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)