From b59ce70359e4425cabf0bd2def6ff95652db072f Mon Sep 17 00:00:00 2001 From: Josh Day Date: Wed, 3 Feb 2016 12:45:42 -0500 Subject: [PATCH] Add method plot!(f::Function) I think it was this easy. Thanks for the pointer. Tried it with gadfly(), pyplot(), and plotly(). --- src/plot.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plot.jl b/src/plot.jl index 1408ff7e..8a1d1433 100644 --- a/src/plot.jl +++ b/src/plot.jl @@ -413,7 +413,7 @@ function createKWargsList(plt::PlottingObject, x::AVec, y::AVec, surf::Surface; end function createKWargsList(plt::PlottingObject, f::FuncOrFuncs; kw...) - error("Can't pass a Function or Vector{Function} for y without also passing x") + createKWargsList(plt, f, xmin(plt), xmax(plt); kw...) end # list of functions