Merge pull request #1077 from daschw/seriestype-error

improve recipe error
This commit is contained in:
Daniel Schwabeneder 2017-09-07 13:29:09 +02:00 committed by GitHub
commit af9d97d561

View File

@ -10,6 +10,9 @@ const FuncOrFuncs{F} = Union{F, Vector{F}, Matrix{F}}
all3D(d::KW) = trueOrAllTrue(st -> st in (:contour, :contourf, :heatmap, :surface, :wireframe, :contour3d, :image), get(d, :seriestype, :none))
# unknown
convertToAnyVector(x, d::KW) = error("No user recipe defined for $(typeof(x))")
# missing
convertToAnyVector(v::Void, d::KW) = Any[nothing], nothing