Matplotlib:对数刻度不显示次要刻度

时间:2017-06-12 11:06:37

标签: python matplotlib

我有以下代码。

import matplotlib
from matplotlib import pyplot as plt
import numpy as np

fig1, ax1 = plt.subplots()

data = np.loadtxt('datalog.txt')
xdata=data[:,0]; ydata=data[:,1]
ax1.plot(xdata,ydata)
ax1.set_xscale('log')
plt.savefig('plot.png')
plt.show()

这给出了以下图表。

enter image description here

为什么我没有得到人们通常期望的次要蜱?

可以找到文件datalog.txt here

0 个答案:

没有答案
相关问题