Matrix support
This commit is contained in:
parent
8b6ca96e0a
commit
f571596eda
@ -27,6 +27,7 @@ convertToAnyVector(v::AVec{Union{Missing, T}}, plotattributes::KW) where {T<:Num
|
||||
convertToAnyVector(v::AVec{Union{Missing, T}}, plotattributes::KW) where {T<:AbstractString} = Any[replace(v, missing => "")], nothing
|
||||
|
||||
function convertToAnyVector(v::AMat, plotattributes::KW)
|
||||
v = handlemissingsinmatrix(v)
|
||||
if all3D(plotattributes)
|
||||
Any[Surface(v)]
|
||||
else
|
||||
@ -34,6 +35,10 @@ function convertToAnyVector(v::AMat, plotattributes::KW)
|
||||
end, nothing
|
||||
end
|
||||
|
||||
handlemissingsinmatrix(v::AMat) = v
|
||||
handlemissingsinmatrix(v::AMat{T}) where T <: Number = replace(v, missing => NaN)
|
||||
handlemissingsinmatrix(v::AMat{T}) where T <: String = replace(v, missing => "")
|
||||
|
||||
# function
|
||||
convertToAnyVector(f::Function, plotattributes::KW) = Any[f], nothing
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user