问题描述
我可以像这样在 matplotlib 日志图中绘制次要网格线:
lx = [6,60,100,6]
ly = [40,6,40]
fig,ax = plt.subplots(1,1);
plt.plot(lx,ly,'-',color='k',linewidth=5)
ax.set_yscale('log')
ax.grid(True,which='both',color='b')
ax.minorticks_on()
但是当我将数据更改为:
ly = [40,0.6,10000,40]
我在 log y 轴上丢失了次要网格线:
我怎样才能找回我的小网格线?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)