简体   繁体   English

牛Julia在朱莉娅薄荷

[英]Gadfly in Julia on Mint

I recently installed Mint OS on my system and try to use Julia's Gadfly library. 我最近在系统上安装了Mint OS,并尝试使用Julia的Gadfly库。 On a freshly installed Julia command line (I've installed it via the recommended repositories in Julia's documentation), I installed Gadfly by typing: Pkg.add("Gadfly") . 在新安装的Julia命令行上(我已经通过Julia的文档中推荐的存储库安装了它),我通过键入以下Pkg.add("Gadfly")安装了Gadfly: Pkg.add("Gadfly") Everything seemed to work. 一切似乎都正常。

By invoking using Gadfly the prompt shows the following messages: 通过using Gadfly调用,提示将显示以下消息:

Warning: could not import Base.foldl into NumericExtensions
Warning: could not import Base.foldr into NumericExtensions
Warning: could not import Base.sum! into NumericExtensions
Warning: could not import Base.maximum! into NumericExtensions
Warning: could not import Base.minimum! into NumericExtensions
Warning: could not import StatsBase.bandwidth into Stat
Warning: could not import StatsBase.kde into Stat

I've tried to make a plot using plot(x=rand(10),y=rand(10)) . 我试图使用plot(x=rand(10),y=rand(10))进行plot(x=rand(10),y=rand(10)) All I see is the is the prompt showing Plot(...) . 我所看到的只是显示Plot(...)的提示。 My questions regarding this are: 我对此的疑问是:

  • What does this mean? 这是什么意思?
  • Did I do something wrong? 我做错什么了吗?
  • How can I fix this? 我怎样才能解决这个问题?

You need to draw the plot on a backend. 您需要在后端绘制图。 For instance: 例如:

myplot = plot(x=rand(10),y=rand(10))
draw(PNG("myplot.png", 4inch, 3inch), myplot)

This link has more examples. 此链接有更多示例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM