未用Julia定义的情节 [英] Plot not defined with Julia

查看:36
本文介绍了未用Julia定义的情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从Ubuntu 12.04上的源代码编译了Julia 0.1.实际上,这是我第一次尝试朱莉娅.

I compiled Julia 0.1 from the source code on my Ubuntu 12.04. It is my first time try with Julia actually.

编译顺利完成,只有一些警告.

The compilation got through to the end with no problem but some warnings.

当我尝试执行plot命令时,问题来了,

When I try to execute the plot command , here comes the problem,

    julia> plot(x->sin(x^2)/x, -2pi,2pi)
    ERROR: plot not defined

编译是否在某个地方出错,还是必须安装额外的程序包才能在Julia中打印? 谢谢

Did the compilation go wrong somewhere or Do I have to install extra package to plot in Julia? Thanks

推荐答案

基于Web的图形已经过时且无法维护(尽管正在进行工作以使下一代Web图形正常工作).替代绘图包括位于 https://github.com/nolta/Winston.jl https://github.com/dcjones/Gadfly.jl 只需使用Pkg.add("Winston")(或Pkg.add("Gadfly")命令).有关文档和用法示例,请参考链接的存储库.

The web-based graphics are outdated and unmaintained (though there's work in progress to get the next generation of web graphics working). Plotting alternatives include the Winston or Gadfly packages at https://github.com/nolta/Winston.jl and https://github.com/dcjones/Gadfly.jl which you can install simply using the Pkg.add("Winston") (or Pkg.add("Gadfly") commands). For documentation and usage examples please refer to the linked repositories.

这篇关于未用Julia定义的情节的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆