This should work:
t = ax.yaxis.get_offset_text()
t.set_x(1.1)
with ax
your right axis. However, you cannot change the y position, so if you are not satisfied with it, you can hide the offset text and create it manually at the right position (x,y):
ax.yaxis.get_offset_text().set_visible(False)
text(x, y, "1e4")
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.