Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a log plot and my variables are large numbers in power 10 (10^13..10^17), when plotting I want my axis to be written not in the power 10^x, but instead just the power x..

What I have tried:

nuj= np.logspace(np.log10(1e12), np.log10(1e17), 100)

z,o= np.loadtxt('PKS 1329049 .txt', usecols=[0,2], unpack= True)

plt.xscale('log')
plt.yscale('log')
plt.xlim(1e12, 1e24)
plt.ylim(1e43, 1e48)

plt.show()
Posted
Updated 13-Feb-18 9:25am

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900