首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >尝试Haskells plotList命令,没有显示任何内容

尝试Haskells plotList命令,没有显示任何内容
EN

Stack Overflow用户
提问于 2014-07-28 04:24:12
回答 1查看 111关注 0票数 0

基本上,我启动了gchi,导入了图形库,然后开始执行这个操作。

代码语言:javascript
复制
Prelude Graphics.Gnuplot.Simple> plotList [] [(1, 1), (2, 2), (3, 3)]
Loading package transformers-0.3.0.0 ... linking ... done.
Loading package mtl-2.1.2 ... linking ... done.
Loading package array-0.4.0.1 ... linking ... done.
Loading package deepseq-1.3.0.1 ... linking ... done.
Loading package filepath-1.3.0.1 ... linking ... done.
Loading package old-locale-1.0.0.5 ... linking ... done.
Loading package time-1.4.0.1 ... linking ... done.
Loading package bytestring-0.10.0.2 ... linking ... done.
Loading package unix-2.6.0.1 ... linking ... done.
Loading package directory-1.2.0.1 ... linking ... done.
Loading package process-1.1.0.2 ... linking ... done.
Loading package containers-0.5.0.0 ... linking ... done.
Loading package data-accessor-0.2.2.6 ... linking ... done.
Loading package data-accessor-transformers-0.2.1.6 ... linking ... done.
Loading package exceptions-0.6.1 ... linking ... done.
Loading package temporary-1.2.0.3 ... linking ... done.
Loading package utility-ht-0.0.10 ... linking ... done.
Loading package gnuplot-0.5.2.2 ... linking ... done.

所有这些事情都发生了,但没有图像显示?我是否需要做一些主要的函数调用才能显示,或者我将如何实际看到一张图片。谢谢你的建议。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2014-07-28 06:07:15

确保安装了gnuplot二进制文件,而不仅仅是Haskell from hackage。后者并不真正检查是否安装了必要的二进制文件。根据平台的不同,它只是调用shell命令或使用管道,而不查找返回类型,因此甚至不会得到错误。

您可以通过以下方式检查是否安装了gnuplot

代码语言:javascript
复制
$ gnuplot --version

如果这没有给您提供版本,那么您要么还没有安装gnuplot,要么gnuplot就不在您的路径中。

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

https://stackoverflow.com/questions/24988411

复制
相关文章

相似问题

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