rename handlemissingsinmatrix
This commit is contained in:
parent
13339125eb
commit
91816e6715
@ -28,7 +28,7 @@ convertToAnyVector(v::AVec{T}, plotattributes::KW) where {T<:AbstractString} = A
|
|||||||
convertToAnyVector(v::AVec{Union{Missing, T}}, plotattributes::KW) where {T<:AbstractString} = Any[replace(v, missing => "")], nothing
|
convertToAnyVector(v::AVec{Union{Missing, T}}, plotattributes::KW) where {T<:AbstractString} = Any[replace(v, missing => "")], nothing
|
||||||
|
|
||||||
function convertToAnyVector(v::AMat, plotattributes::KW)
|
function convertToAnyVector(v::AMat, plotattributes::KW)
|
||||||
v = handlemissingsinmatrix(v)
|
v = handlemissings(v)
|
||||||
if all3D(plotattributes)
|
if all3D(plotattributes)
|
||||||
Any[Surface(v)]
|
Any[Surface(v)]
|
||||||
else
|
else
|
||||||
@ -36,9 +36,9 @@ function convertToAnyVector(v::AMat, plotattributes::KW)
|
|||||||
end, nothing
|
end, nothing
|
||||||
end
|
end
|
||||||
|
|
||||||
handlemissingsinmatrix(v::AMat) = v
|
handlemissings(v::AMat) = v
|
||||||
handlemissingsinmatrix(v::AMat{T}) where T <: Number = replace(v, missing => NaN)
|
handlemissings(v::AMat{T}) where T <: Number = replace(v, missing => NaN)
|
||||||
handlemissingsinmatrix(v::AMat{T}) where T <: String = replace(v, missing => "")
|
handlemissings(v::AMat{T}) where T <: String = replace(v, missing => "")
|
||||||
|
|
||||||
# function
|
# function
|
||||||
convertToAnyVector(f::Function, plotattributes::KW) = Any[f], nothing
|
convertToAnyVector(f::Function, plotattributes::KW) = Any[f], nothing
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user