Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用Gadfly.jl来绘制我的函数。Geom.hline我尝试通过传递参数来添加一条水平线。但是,我收到一个错误:
Geom.hline
无法处理配方参数:(typeof(f)、Int64、Float64、Gadfly.Geom.HLineGeometry)
我错过了什么?
这是我的代码
using Gadfly f(x)=x/(1-x) plot(f,0,0.8, yintercept=1.5, Geom.hline(style=:dot))
美学似乎yintercept只接受一系列价值观:
yintercept
plot(f,0,0.8, yintercept=[1.5], Geom.hline(style=:dot))