Reputation: 11
result of the full code I try to get log scale for both axes and use code:
plt.subplot(4, 1, 1)
plt.loglog(w, A_e)
plt.loglog(w, A_l)
plt.xlabel('ω, рад/c')
plt.ylabel('A(ω), дБ')
plt.grid(which='both', axis='both', ls="-")
but I get log scale only on x axe. How can I make it on both axes?
I tried to use smth like this
plt.yticks([1e-3, 1e-2, 1e-1, 1, 10, 100], ['$10^{-3}$', '$10^{-2}$', '$10^{-1}$', '1', '10', '100'])
but it didn't help
Upvotes: 1
Views: 37