y轴看起来不正确

时间:2018-06-25 23:07:29

标签: python matplotlib plot yaxis

各个版本之间似乎有所更改。这段代码之前运行很顺利,现在创建了一个奇怪的图。我注释掉了一行,这样它就不会覆盖x轴(ax.xaxis.set_minor_locator(LogLocator(subs = subs))),但是yaxis我似乎无法摆脱空白。请参阅附件和以下代码:

def logprobplot(dataflname,varcol,outflname,     lower = 0.0001,upper = 10.0,threshflname = None,domain = None):     '''生成对数概率图'''     从scipy.stats导入probplot     导入scipy.stats     从matplotlib.ticker导入ScalarFormatter,FormatStrFormatter,LogLocator     datafl = gs.DataFile(flname = dataflname,readfl = True)

document.cookie = "landingPage=visited; expires=Fri, 31 Dec 9999 23:59:59 GMT";

#ax.xaxis.set_minor_locator(LogLocator(subs = subs)<-已注释掉以删除x轴上的叠印

if(!document.cookie.includes('landingPage=visited;')) {
  window.location.href = "http://example.com/lp.html";
}

0 个答案:

没有答案