Normally when I plot a figure with double y-axis using pyplot, I use
ax2.yaxis.tick_right()
to put ticks of axis on right side to right for visual clarity, however, I found pyplot automatically show value in scientific notation when value range on axis is big enough, e.g., 1.6e7, and that makes ‘1e7’ placed on top of right axis, rather than right side like rest of ticks and number. Honestly I don’t even know how to describe it as it looks like not part of tick or notation. Example figure can be seen here.
A potential solution is prevent pyplot using scientific notation but I prefer to keep it. So how can I set it (in this case ‘1e7’) to right side of second(right) axis? Thanks
Joe.Z is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.