【发布时间】:2021-11-30 06:24:41
【问题描述】:
我正在尝试如下绘制直方图:
using Plots; using PyPlot
pyplot() # Plots.PyPlotBackend()
x = 0:100;
result = rand(x,2000);
histogram(result)
但是,它返回 UndefVarError :
UndefVarError: histogram not defined
Stacktrace:
[1] top-level scope
@ In[156]:5
[2] eval
@ .\boot.jl:360 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1116
我关注了Plotting a histogram in Julia,但返回错误。
我该如何解决这个错误?
【问题讨论】: