enhance example 55 (#3596)
Co-authored-by: t-bltg <t-bltg@users.noreply.github.com>
This commit is contained in:
parent
b3f698c460
commit
f63ee6d79e
@ -1170,20 +1170,12 @@ const _examples = PlotExample[
|
|||||||
:(
|
:(
|
||||||
begin
|
begin
|
||||||
using LinearAlgebra
|
using LinearAlgebra
|
||||||
scalefontsizes()
|
scalefontsizes(.4)
|
||||||
scalefontsizes(.5)
|
|
||||||
|
|
||||||
x, y = -6:0.5:10, -8:0.5:8
|
x, y = collect(-6:0.5:10), collect(-8:0.5:8)
|
||||||
function f(x,y)
|
|
||||||
r = norm([x,y])
|
|
||||||
sinc(r / pi)
|
|
||||||
end
|
|
||||||
|
|
||||||
args = (x, y, f)
|
args = x, y, (x, y) -> sinc(norm([x, y]) / π)
|
||||||
kwargs = Dict(
|
kwargs = Dict(:xlabel=>"x", :ylabel=>"y", :zlabel=>"z", :grid=>true, :minorgrid=>true)
|
||||||
:xlabel => "x", :ylabel => "y", :zlabel => "z",
|
|
||||||
:grid => true, :minorgrid => true, :dpi => 200
|
|
||||||
)
|
|
||||||
|
|
||||||
plots = [wireframe(args..., title = "wire"; kwargs...)]
|
plots = [wireframe(args..., title = "wire"; kwargs...)]
|
||||||
|
|
||||||
@ -1209,7 +1201,10 @@ const _examples = PlotExample[
|
|||||||
))
|
))
|
||||||
end
|
end
|
||||||
|
|
||||||
plot(plots..., layout=(@layout [_ ° _; ° ° °; ° ° °]), margin=2Plots.mm)
|
plt = plot(plots..., layout=(@layout [_ ° _; ° ° °; ° ° °]), margin=0Plots.px)
|
||||||
|
|
||||||
|
resetfontsizes()
|
||||||
|
plt
|
||||||
end
|
end
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user