The error message isn't very informative, but you're missing a Gadfly.Geom in your first layer.
On Sat, Nov 21, 2015 at 12:23 PM, digxx <diger_d...@hotmail.com> wrote: > Im trying to plot the following using layers...though do I have to load it > separately or why doesnt it work? > > julia> plotcomb=plot( > layer( > x=Q_l, > y=cal_corr > ), > layer( > x=Q_l, > y=cal_corr, > Geom.line > ), > Theme(panel_opacity=0.1) > ) > Error showing value of type Gadfly.Plot: > ERROR: MethodError: `render` has no method matching > render(::Gadfly.Geom.Nil, ::Gadfly.Theme, ::Gadfly.Aesthetics) > Closest candidates are: > render(::Gadfly.Geom.Nil, ::Gadfly.Theme, ::Gadfly.Aesthetics, > ::Gadfly.Data, ::Dict{Symbol,Gadfly.ScaleElement}, > ::Array{Gadfly.Aesthetics,1}) > render(::Gadfly.GeometryElement, ::Gadfly.Theme, ::Gadfly.Aesthetics, > ::Union{Array{Gadfly.Aesthetics,1},Void}, > ::Union{Array{Gadfly.Data,1},Void}, ::Dict{Symbol,Gadfly.ScaleElement}) > render(::Gadfly.Geom.BarGeometry, ::Gadfly.Theme, ::Gadfly.Aesthetics) > ... > in render at C:\cygwin64\home\Diger\.julia\v0.4\Gadfly\src\geometry.jl:47 > in render_prepared at > C:\cygwin64\home\Diger\.julia\v0.4\Gadfly\src\Gadfly.jl:782 > in render at C:\cygwin64\home\Diger\.julia\v0.4\Gadfly\src\Gadfly.jl:721 > in display at C:\cygwin64\home\Diger\.julia\v0.4\Gadfly\src\Gadfly.jl:973 > [inlined code] from multimedia.jl:151 > in display at C:\cygwin64\home\Diger\.julia\v0.4\Gadfly\src\Gadfly.jl:151 > in print_response at REPL.jl:134 > in print_response at REPL.jl:121 > in anonymous at REPL.jl:624 > in run_interface at LineEdit.jl:1610 > in run_frontend at REPL.jl:863 > in run_repl at REPL.jl:167 > in _start at client.jl:453 >