Plot 铸币厂朱丽亚的牛虻

Plot 铸币厂朱丽亚的牛虻,plot,julia,Plot,Julia,我最近在我的系统上安装了Mint操作系统,并尝试使用Julia的Gadfly库。在新安装的Julia命令行上(我通过Julia文档中推荐的存储库安装了它),我通过键入:Pkg.add(“Gadfly”)安装了Gadfly。一切似乎都正常 通过使用Gadfly调用,提示符显示以下消息: Warning: could not import Base.foldl into NumericExtensions Warning: could not import Base.foldr into Numer

我最近在我的系统上安装了Mint操作系统,并尝试使用Julia的Gadfly库。在新安装的Julia命令行上(我通过Julia文档中推荐的存储库安装了它),我通过键入:
Pkg.add(“Gadfly”)
安装了Gadfly。一切似乎都正常

通过使用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
我尝试使用
绘图(x=rand(10),y=rand(10))
绘制一个绘图。我看到的只是显示
绘图(…)
的提示。我的问题是:

  • 这是什么意思
  • 我做错什么了吗
  • 我怎样才能解决这个问题

您需要在后端绘制绘图。例如:

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

有更多的例子。

谢谢,它奏效了。我已经阅读了第一个示例,尝试了它,但担心它不起作用。@beyeran我已经更新了链接,现在它直接指向后端部分。警告是因为Gadfly依赖于NumericeExtensions包,NumericExtensions未能正确标记其开始为0.3-prerelease分支中定义的函数提供扩展的版本。它们不是有害的,但表明您可能会遇到兼容性问题。