Skip to content

Commit

Permalink
mor withs
Browse files Browse the repository at this point in the history
  • Loading branch information
BeastyBlacksmith committed Jan 22, 2024
1 parent 956dfa2 commit 9403eaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/examples.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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]) / π)
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9403eaa

Please sign in to comment.