allow type recipes for numbers but not for reals

This commit is contained in:
Daniel Schwabeneder 2020-04-06 09:56:47 +02:00
parent 5ff0a419dd
commit b433b76a84

View File

@ -228,6 +228,8 @@ end
# don't do anything for nothing # don't do anything for nothing
_apply_type_recipe(plotattributes, v::Nothing, letter) = v _apply_type_recipe(plotattributes, v::Nothing, letter) = v
_apply_type_recipe(plotattributes, v::AbstractArray{<:MaybeString}, letter) = v
_apply_type_recipe(plotattributes, v::AbstractArray{<:Union{Real, Nothing}}, letter) = v
# axis args before type recipes should still be mapped to all axes # axis args before type recipes should still be mapped to all axes
function _preprocess_axis_args!(plotattributes) function _preprocess_axis_args!(plotattributes)