I'm trying to plot large numbers on the x axis using the interactive mode, and instead of the full number on the ticks, i get 1, 1.5 and so on and +5.043e3. how can i display the full number?
After defining the plt.ion()
, i have this inside a loop:
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 is other variable defined in a for.