No error when input is all missing
This commit is contained in:
parent
972c97d5ec
commit
4c22a421a1
@ -193,7 +193,7 @@ _apply_type_recipe(plotattributes, v) = RecipesBase.apply_recipe(plotattributes,
|
|||||||
# This sort of recipe should return a pair of functions... one to convert to number,
|
# This sort of recipe should return a pair of functions... one to convert to number,
|
||||||
# and one to format tick values.
|
# and one to format tick values.
|
||||||
function _apply_type_recipe(plotattributes, v::AbstractArray)
|
function _apply_type_recipe(plotattributes, v::AbstractArray)
|
||||||
isempty(v) && return Float64[]
|
isempty(skipmissing(v)) && return Float64[]
|
||||||
x = first(skipmissing(v))
|
x = first(skipmissing(v))
|
||||||
args = RecipesBase.apply_recipe(plotattributes, typeof(x), x)[1].args
|
args = RecipesBase.apply_recipe(plotattributes, typeof(x), x)[1].args
|
||||||
if length(args) == 2 && typeof(args[1]) <: Function && typeof(args[2]) <: Function
|
if length(args) == 2 && typeof(args[1]) <: Function && typeof(args[2]) <: Function
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user