【发布时间】: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。怎么了?
【问题讨论】: