9951 explained code solutions for 126 technologies


python-matplotlibHow to log scale Y axis


import matplotlib.pyplot as plt
plt.plot([1,80,450])
plt.yscale('log')
plt.show()ctrl + c
import matplotlib.pyplot as plt

loads Matplotlib module to use plotting capabilities

.plot(

plot specified data

.yscale('log')

scale Y axis exponentially

.show()

render chart in a separate window