インタラクティブ モードを使用して x 軸に大きな数値をプロットしようとしていますが、目盛りの完全な数値の代わりに、1、1.5 などと +5.043e3 を取得します。完全な数を表示するにはどうすればよいですか?
を定義した後plt.ion()
、ループ内にこれがあります:
plt.xlabel("Wavelength (angstroms)")
plt.ylabel("Arbitrary Flux")
plt.plot(xo,yo,'k--')
for e in range(multispec):
if ( e == 0):
plt.plot(MX[e],MY[e], 'r-')
else:
plt.plot(MX[e],MY[e])
l=float(int(n))
plt.axis([n-1, n+1, 0.1, 1.1])
n は for で定義された他の変数です。