Plots.jl - No method matching expand_extrema

plotting

#1

Hi,

I am using the Plots.jl with the GR backend. I am trying to make the following plot:

plot( SSE[1].Mag, SSE[1].N )

Where both SSE[1].Mag and SSE[1].N are of types Array{Any,1}

However, I am getting the error below. I would appreciate if someone could help me finding out the issue. If possible, please send along any documentation to understand better my mistake.

thank you

MethodError: no method matching expand_extrema!(::Plots.Axis, ::Tuple{Int64})
Closest candidates are:
expand_extrema!(::Plots.Axis, !Matched::Bool) at /Users/josimar/.julia/v0.5/Plots/src/axes.jl:250
expand_extrema!(::Plots.Axis, !Matched::Void) at /Users/josimar/.julia/v0.5/Plots/src/axes.jl:249
expand_extrema!(::Plots.Axis, !Matched::Plots.Surface{M<:AbstractArray{T,2}}) at /Users/josimar/.julia/v0.5/Plots/src/components.jl:528

in expand_extrema!(::Plots.Subplot{Plots.GRBackend}, ::Dict{Symbol,Any}) at axes.jl:289
in _expand_subplot_extrema(::Plots.Subplot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Symbol) at pipeline.jl:361
in _process_seriesrecipe(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}) at pipeline.jl:392
in _plot!(::Plots.Plot{Plots.GRBackend}, ::Dict{Symbol,Any}, ::Tuple{Array{Any,1},Array{Any,1}}) at plot.jl:227
in #plot#261(::Array{Any,1}, ::Function, ::Array{Any,1}, ::Vararg{Array{Any,1},N}) at plot.jl:52
in plot(::Array{Any,1}, ::Array{Any,1}, ::Vararg{Array{Any,1},N}) at plot.jl:46
in include_string(::String, ::String) at loading.jl:441
in include_string(::String, ::String) at sys.dylib:?
in eval(::Module, ::Any) at boot.jl:234
in eval(::Module, ::Any) at sys.dylib:?
in (::Atom.##65#68)() at eval.jl:40
in withpath(::Atom.##65#68, ::Void) at utils.jl:30
in withpath(::Function, ::Void) at eval.jl:46
in macro expansion at eval.jl:109 [inlined]
in (::Atom.##64#67{Dict{String,Any}})() at task.jl:60


#2

Hi,
please post a reproducible example, e.g. do you get this with plot(rand(100),rand(100))? What is your version number of Plots?