Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Test for error value from apply_recipe fallback. #95

Merged
merged 3 commits into from
Aug 26, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 6 additions & 10 deletions src/plot_recipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ function _process_plotrecipe(plt, kw, kw_list, still_to_process)
push!(kw_list, kw)
return
end
try
st = kw[:seriestype]
st = kw[:seriestype] = type_alias(plt, st)
datalist = RecipesBase.apply_recipe(kw, Val{st}, plt)
st = kw[:seriestype]
st = kw[:seriestype] = type_alias(plt, st)
datalist = RecipesBase.apply_recipe(kw, Val{st}, plt)
if !isnothing(datalist)
warn_on_recipe_aliases!(plt, datalist, :plot, st)
for data in datalist
preprocess_attributes!(plt, data.plotattributes)
Expand All @@ -39,12 +39,8 @@ function _process_plotrecipe(plt, kw, kw_list, still_to_process)
end
push!(still_to_process, data.plotattributes)
end
catch err
if err isa MethodError && occursin("plot recipe", err.args)
push!(kw_list, kw)
else
rethrow()
end
else
push!(kw_list, kw)
end
return
end
Expand Down