【问题标题】:"Barplot not defined" when trying to plot a barplot using Vega package in Julia尝试在 Julia 中使用 Vega 包绘制条形图时出现“条形图未定义”
【发布时间】:2020-08-19 16:43:10
【问题描述】:

我正在尝试使用 Julia 1.3.1 中的 Vega 包绘制条形图,并简单地从文档 (https://johnmyleswhite.github.io/Vega.jl/barplot.html) 中复制示例代码,但是它返回错误消息“条形图未定义”。

using Vega

x = [1, 2, 3, 4, 5]
y = [1, 2, 3, 2, 1]

barplot(x = x, y = y)
UndefVarError: barplot not defined

Stacktrace:
 [1] top-level scope at In[4]:5

类似的错误消息也会出现在其他类型的绘图中,例如 areaplot。怎么了?

【问题讨论】:

    标签: plot julia bar-chart vega


    【解决方案1】:

    GitHub repo 看来,Vega 已经有一段时间没有更新了 - 您可能想要使用积极维护的 VegaLite

    【讨论】:

      猜你喜欢
      • 2021-12-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-10-09
      相关资源
      最近更新 更多