0

What formula does matplotlib.pyplot.yscale('log') use when plotting in log scale? For e.g. with

x=[1,2, 3]
y=[0.0088 ,   0.0283   , 0.121 ]
plt.yscale('log')
plt.plot(x,y,linewidth=3, marker ='p', markersize=7)

plots the graph with y-axis values in the positive range of 0.001 to 1. But 10*math.log10(y) gives negative values as y < 0. So how does the matplotlib.pyplot.yscale('log') applies log?

enter image description here

0 Answers0