Apr-19-2019, 12:18 AM
I'm plotting different sets of data onto the same plot, but would like to adjust the y-axis to display powers of ten, from 10-19 to 10-5 along all 10n for all integers n in between -19 and -5. I've also tried
![[Image: nCJzYot]](https://imgur.com/nCJzYot)
plt.yticks()
, but to no avail. Here's an image of the plot from the below code.error_2=[] error_3=[] error_4=[] error_5=[] xvalue=[x for x in np.linspace(6,21,16)] for x in xvalue: error_2.append(abs(ln(x,2)-np.log(x))) error_3.append(abs(ln(x,3)-np.log(x))) error_4.append(abs(ln(x,4)-np.log(x))) error_5.append(abs(ln(x,5)-np.log(x))) plt.figure(5) plt.plot(xvalue,error_2,'b') plt.plot(xvalue,error_3,'g') plt.plot(xvalue,error_4,'r') plt.plot(xvalue,error_5,'y') plt.ylim(10**(-19), 10**(-5)) plt.show()My lowest values in
error_5
:[4.440892098500626e-16, 2.6645352591003757e-15, 5.329070518200751e-15, 1.199040866595169e-14, 2.1760371282653068e-14, 3.6415315207705135e-14, 5.639932965095795e-14, 8.304468224196171e-14, 1.1857181902996672e-13, 1.6431300764452317e-13, 2.2160051571518125e-13, 2.8954616482224083e-13, 3.717026686445024e-13, 4.698463840213662e-13, 5.830891325331322e-13, 7.123190925995004e-13]