From 5acf967a9ebf621a7e36f62ee7cb8503b049165b Mon Sep 17 00:00:00 2001 From: Nicholas Bauer Date: Thu, 26 Aug 2021 11:46:28 -0400 Subject: [PATCH] v1.21.1 | No exception thrown in `apply_recipe` fallback (#3765) * No exception thrown in `apply_recipe` fallback Throwing an exception here can vastly slow down plotting, as it happens frequently. Returning an error value instead, which the calling function can check, can speed up plotting 2x. An accompanying change is necessary in RecipesPipeline.jl, assuming this value is suitable. * Bumped compat for RecipesPipeline, tentative * Bump patch version * Fix wrong versioning Co-authored-by: t-bltg --- Project.toml | 4 ++-- src/recipes.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Project.toml b/Project.toml index 4cb1884f..c233c068 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "Plots" uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80" author = ["Tom Breloff (@tbreloff)"] -version = "1.21.0" +version = "1.21.1" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" @@ -46,7 +46,7 @@ NaNMath = "0.3" PlotThemes = "2" PlotUtils = "1" RecipesBase = "1" -RecipesPipeline = "0.3" +RecipesPipeline = "0.3.5" Reexport = "0.2, 1.0" Requires = "1" Scratch = "1" diff --git a/src/recipes.jl b/src/recipes.jl index 0466d66c..d97d1f0d 100644 --- a/src/recipes.jl +++ b/src/recipes.jl @@ -47,7 +47,7 @@ num_series(x::AMat) = size(x, 2) num_series(x) = 1 RecipesBase.apply_recipe(plotattributes::AKW, ::Type{T}, plt::AbstractPlot) where {T} = - throw(MethodError(T, "Unmatched plot recipe: $T")) + nothing # ---------------------------------------------------------------------------