KristofferC / PGFPlotsX.jl

Plots in Julia using the PGFPlots LaTeX package
Other
301 stars 40 forks source link

meta for Coordinates when given as a vector of tuple #250

Open KristofferC opened 3 years ago

KristofferC commented 3 years ago

I feel both of these should work:

julia> c = Coordinates([1,2,3], [1,2,3], meta = [1,2,3])
Coordinates{2}(Union{Nothing, Coordinate{2}}[Coordinate{2}((1, 1), nothing, nothing, nothing, 1), Coordinate{2}((2, 2), nothing, nothing, nothing, 2), Coordinate{2}((3, 3), nothing, nothing, nothing, 3)])

julia> c = Coordinates([(1,1), (2,2), (3,3)], meta = [1,2,3])
ERROR: MethodError: no method matching Coordinates(::Array{Tuple{Int64,Int64},1}; meta=[1, 2, 3])