当我尝试使用ipython绘图时,由于某种原因,无论我尝试什么,y轴都没有得到正确的格式。你知道吗
我看到范围在3528到3536之间。但不知何故,它显示出同样的怪异。 上面显示的是+3.528e3。如何将其更改为仅显示类似于x轴格式的内容?你知道吗
这是我的密码
plt.figure()
plt.plot(all_strks, all_fwds, 'o')
plt.plot(all_strks, fwdline)
#ax = plt.gca()
#ax.set_ylim(all_fwds.min(),all_fwds.max())
#x1,x2,y1,y2 = plt.axis()
#print x1,x2,all_fwds.min(),all_fwds.max()
#plt.axis([x1,x2,all_fwds.min(),all_fwds.max()])
将偏移值设为假。这是你需要的所有信息。 Here is the tutorial link.
或者如示例所示
相关问题 更多 >
编程相关推荐