How Do I Plot A Semilog Plot In Python?
How do I plot a semilog plot in python? with X axis in log and y axis as linear. Currently I m plooting phase vs omega where I need the y axes to be linear while x axes to be in lo
Solution 1:
Use semilogx
, as documented here
A quick example:
import matplotlib.pyplotas plt
plt.semilogx([1, 10, 100], [1, 10, 100])
plt.xlabel("Omega")
plt.ylabel("phase")
plt.show()
Post a Comment for "How Do I Plot A Semilog Plot In Python?"