From 3dd1c500cfd214e49ef4caf6d057965506b7c695 Mon Sep 17 00:00:00 2001 From: Daniel Schwabeneder Date: Mon, 6 Apr 2020 17:40:31 +0200 Subject: [PATCH] fix ambiguity --- src/series.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/series.jl b/src/series.jl index 0e021767..7cd0a3f0 100644 --- a/src/series.jl +++ b/src/series.jl @@ -216,10 +216,9 @@ function _apply_type_recipe(plotattributes, v::AbstractArray, letter) end # special handling for Surface... need to properly unwrap and re-wrap -_apply_type_recipe(plotattributes, v::Surface{<:AMat{MaybeString}}, letter) = v _apply_type_recipe( plotattributes, - v::Surface{<:AMat{<:Union{AbstractFloat, Integer, Missing}}}, + v::Surface{<:AMat{<:Union{AbstractFloat, Integer, AbstractString, Missing}}}, ) = v function _apply_type_recipe(plotattributes, v::Surface) ret = _apply_type_recipe(plotattributes, v.surf) @@ -232,10 +231,9 @@ end # don't do anything vectors of datapoints and for nothing _apply_type_recipe(plotattributes, v::Nothing, letter) = v -_apply_type_recipe(plotattributes, v::AbstractArray{<:MaybeString}, letter) = v _apply_type_recipe( plotattributes, - v::AbstractArray{<:Union{AbstractFloat, Integer, Missing}}, + v::AbstractArray{<:Union{AbstractFloat, Integer, AbstractString, Missing}}, letter, ) = v