Plot 牛虻水平线
我正在使用以绘制我的函数。我试图通过传递Plot 牛虻水平线,plot,julia,gadfly,Plot,Julia,Gadfly,我正在使用以绘制我的函数。我试图通过传递Geom.hline参数来添加一条水平线。但是,我得到一个错误: 无法处理配方参数:(typeof(f)、Int64、Float64、, 牛虻.几何.重力测量法) 我错过了什么 这是我的密码 using Gadfly f(x)=x/(1-x) plot(f,0,0.8, yintercept=1.5, Geom.hline(style=:dot)) 似乎yintercept美学只接受一组值: plot(f,0,0.8, yintercept=[1.
Geom.hline
参数来添加一条水平线。但是,我得到一个错误:
无法处理配方参数:(typeof(f)、Int64、Float64、,
牛虻.几何.重力测量法)
我错过了什么
这是我的密码
using Gadfly
f(x)=x/(1-x)
plot(f,0,0.8, yintercept=1.5, Geom.hline(style=:dot))
似乎
yintercept
美学只接受一组值:
plot(f,0,0.8, yintercept=[1.5], Geom.hline(style=:dot))