Skip to content

Commit 655950c

Browse files
committed
Plot body aero
1 parent 077eb78 commit 655950c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

ext/VortexStepMethodMakieExt.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,21 +30,21 @@ function Makie.plot(panel::VortexStepMethod.Panel; size = (1200, 800), kwargs...
3030
ax = Axis3(fig[1, 1]; aspect = :data,
3131
xlabel = "X", ylabel = "Y", zlabel = "Z",
3232
azimuth = 9/8*π, zoommode = :cursor, viewmode = :fit,
33-
xautolimitmargin=(1.0, 1.0),
34-
yautolimitmargin=(10.0, 10.0),
3533
)
3634

3735
plot!(ax, panel; kwargs...)
3836
return fig
3937
end
4038

41-
function Makie.plot(body_aero::VortexStepMethod.BodyAerodynamics; size = (1200, 800), kwargs...)
39+
function Makie.plot(body_aero::VortexStepMethod.BodyAerodynamics; size = (1200, 800),
40+
limitmargin = 0.1, kwargs...)
4241
fig = Figure(; size)
4342
ax = Axis3(fig[1, 1]; aspect = :data,
4443
xlabel = "X", ylabel = "Y", zlabel = "Z",
4544
azimuth = 9/8*π, zoommode = :cursor, viewmode = :fit,
46-
# xautolimitmargin=(1.0, 1.0),
47-
# yautolimitmargin=(10.0, 10.0),
45+
xautolimitmargin=(limitmargin, limitmargin),
46+
yautolimitmargin=(limitmargin, limitmargin),
47+
zautolimitmargin=(limitmargin, limitmargin),
4848
)
4949

5050
plot!(ax, body_aero; kwargs...)

0 commit comments

Comments
 (0)