首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用easy_install安装spline软件包

使用easy_install安装spline软件包
EN

Stack Overflow用户
提问于 2014-12-08 20:39:02
回答 1查看 67关注 0票数 0

我有一个用Python构建的图表。图表如下所示:

...and代码的图形部分如下所示:

代码语言:javascript
复制
def graph(seconds,now, dayold, threedayold,weekold):
    dis=4*24*60*60
    x = np.array(seconds[-dis:])

    ynow = np.array(now)
    yday = np.array(dayold)
    y3day = np.array(threedayold)
    yweek = np.array(weekold)
    plt.plot(x,ynow, 'blue')
    plt.plot(x,yday, 'green')
    plt.plot(x,y3day,'purple')
    plt.plot(x,yweek, 'red')
#   plt.fill_between(x,ynow,yday,color='lightblue')
#   plt.fill_between(x,yday,y3day,color='green')
#   plt.fill_between(x,y3day,yweek,color='purple')
#   plt.fill_between(x,yweek,[0] *len(seconds),color='red')
    currenttime=int(seconds[0])
    lastweek=myround(currenttime-7*24*3600)
    plt.xlim(lastweek, currenttime)
    plt.ylim(ymax=100)
    ticks=np.arange(lastweek,currenttime,24*3600)
    labels=[time.strftime("%a", time.gmtime(x)) for x in ticks]
    plt.xticks(ticks,labels)
    plt.grid()
    plt.savefig('/home/joereddington/joereddington.com/stress/stress.png')

a=processFile("/home/joereddington/Jurgen/tracking/results.txt")
print "file processed"
graph(a[0],a[1],a[2],a[3],a[4])

我正在尝试使用answers like this中讨论的样条线软件包来平滑图形,但我真的很难安装相关的软件包……我在(dreamhost)服务器上这样做,所以我必须构建自己的环境,但当我尝试并获得spline时:

代码语言:javascript
复制
joereddington@blout:~/env$ easy_install --install-dir=~/env spline 
Searching for spline
Reading http://pypi.python.org/simple/spline/
Couldn't find index page for 'spline' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
No local packages or download links found for spline
error: Could not find suitable distribution for Requirement.parse('spline')
joereddington@blout:~/env$ 

我做错了什么?我在哪里可以找到包裹?

EN

回答 1

Stack Overflow用户

发布于 2014-12-08 21:09:14

如果你在https://pypi.python.org/pypi?%3Aaction=search&term=spline&submit=search上搜索一下,你会发现没有名为"spline“的包,但有一些包的名字很相似。也许包的详细信息可以帮助你找到你正在寻找的那个。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27358223

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档