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

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

问题描述

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

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.

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

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.jlhttps://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天全站免登陆