# Plots.jl - No method matching expand\_extrema

**URL:** <https://discourse.julialang.org/t/plots-jl-no-method-matching-expand-extrema/2717>\
**Category:** Visualization\
**Tags:** plotting\
**Created:** [March 16, 2017, 8:54pm UTC](https://discourse.julialang.org/t/plots-jl-no-method-matching-expand-extrema/2717 "2017-03-16T20:54:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![josimar](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@josimar](https://discourse.julialang.org/u/josimar)\
**Post date:** [March 16, 2017, 8:54pm UTC](https://discourse.julialang.org/t/plots-jl-no-method-matching-expand-extrema/2717/1 "2017-03-16T20:54:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mkborregaard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkborregaard/32/556_2.png) [@mkborregaard](https://discourse.julialang.org/u/mkborregaard)\
**Post date:** [March 17, 2017, 5:25am UTC](https://discourse.julialang.org/t/plots-jl-no-method-matching-expand-extrema/2717/2 "2017-03-17T05:25:58Z")

</div>

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?
