From 9403eaaa91fcbf4c128e9a97eda8235e1dec48d5 Mon Sep 17 00:00:00 2001 From: Simon Christ Date: Mon, 22 Jan 2024 14:20:18 +0100 Subject: [PATCH] mor withs --- src/examples.jl | 6 +++--- src/utils.jl | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/examples.jl b/src/examples.jl index 230368392..2fe65b1d6 100644 --- a/src/examples.jl +++ b/src/examples.jl @@ -937,7 +937,7 @@ const _examples = PlotExample[ "3D axis flip / mirror", :(using LinearAlgebra), quote - with(scalefonts = 0.5) do + Plots.with(scalefonts = 0.5) do x, y = collect(-6:0.5:10), collect(-8:0.5:8) args = x, y, (x, y) -> sinc(norm([x, y]) / π) @@ -1198,7 +1198,7 @@ const _examples = PlotExample[ legs, ) w, h = Plots._plot_defaults[:size] - with(scalefonts = 0.5, size = (2w, 2h)) do + Plots.with(scalefonts = 0.5, size = (2w, 2h)) do plot(leg_plots()..., leg_plots(legend_column = -1)...; layout = (6, 3)) end end, @@ -1230,7 +1230,7 @@ const _examples = PlotExample[ legs, ) w, h = Plots._plot_defaults[:size] - with(scalefonts = 0.5, size = (2w, 2h)) do + Plots.with(scalefonts = 0.5, size = (2w, 2h)) do plot(leg_plots()..., leg_plots(legend_column = -1)...; layout = (6, 3)) end end, diff --git a/src/utils.jl b/src/utils.jl index 74878824f..faf7b1880 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -634,7 +634,7 @@ allFunctions(arg) = trueOrAllTrue(a -> isa(a, Function), arg) """ Allows temporary setting of backend and defaults for Plots. Settings apply only for the `do` block. Example: ``` -with(:gr, size=(400,400), type=:histogram) do +Plots.with(:gr, size=(400,400), type=:histogram) do plot(rand(10)) plot(rand(10)) end