📌  相关文章
📜  matplotlib y 轴对数刻度 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:25.886000             🧑  作者: Mango

代码示例1
import pylab
import matplotlib.pyplot as plt
a = [pow(10, i) for i in range(10)]
fig = plt.figure()
ax = fig.add_subplot(2, 1, 1)

line, = ax.plot(a, color='blue', lw=2)

ax.set_yscale('log')

pylab.show()