matplotlibの軸の指数表記を10のべき乗にする †matplotlibの軸は数値の桁数が大きいと、指数表記されます。 しかし、この表記は一般的でない気がします。そこで、 import matplotlib.ticker as ptick ###### ax.xaxis.set_major_formatter(ptick.ScalarFormatter(useMathText=True)) ax.yaxis.set_major_formatter(ptick.ScalarFormatter(useMathText=True)) ax.ticklabel_format(style='sci', axis='both') のように設定すると、両軸で10のべき乗表記に変わります。 |