I already made the graph below:
i tried to change the scale of x-axis to 10^n with n = -4,-2,-1,0,1:
the second graph is made with matlab:
i've tried with xtics function in python (first figure), but the result isn't how it's supposed to be.
how to change the graph scale in python so that the result will be the same as second figure?
this is the plotting code i've made in python:
...
plt.figure()
plt.subplot(211)
plt.title('Grafik Simpangan dan Kecepatan')
plt.plot(array_1,array_3, 'r')
plt.ylabel('Simpangan (y) meter')
plt.xticks([0.00001, 0.0001, 0.001, 0.01, 0.1, 1, 10])
plt.grid()
plt.subplot(212)
plt.plot(array_1,array_2, 'b')
plt.ylabel('Kecepatan (v) m/s')
plt.xlabel('Waktu (s)')
plt.xticks([0.00001, 0.0001, 0.001, 0.01, 0.1, 1, 10])
plt.grid()
plt.show()