add test example

This commit is contained in:
Daniel Schwabeneder 2020-10-17 08:35:49 +02:00
parent 2a09bd8266
commit 072b6f42f6

View File

@ -1048,6 +1048,25 @@ const _examples = PlotExample[
heatmap(z, projection = :polar) heatmap(z, projection = :polar)
end] end]
), ),
PlotExample( # 50
"3D surface with axis guides",
"",
[quote
f(x,a) = 1/x + a*x^2
xs = collect(0.1:0.05:2.0);
as = collect(0.2:0.1:2.0);
x_grid = [x for x in xs for y in as];
a_grid = [y for x in xs for y in as];
plot(x_grid, a_grid, f.(x_grid,a_grid),
st = :surface,
xlabel = "longer xlabel",
ylabel = "longer ylabel",
zlabel = "longer zlabel",
)
end]
),
] ]
# Some constants for PlotDocs and PlotReferenceImages # Some constants for PlotDocs and PlotReferenceImages