Skip to content

Commit d11c27a

Browse files
committed
call view_init
1 parent 58b3ec5 commit d11c27a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/plotting.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,12 @@ function create_geometry_plot(wing_aero, title, view_elevation, view_azimuth)
171171
ax.set_ylabel("y")
172172
ax.set_zlabel("z")
173173
set_axes_equal!(ax)
174+
175+
# Set the initial view
176+
ax.view_init(elev=view_elevation, azim=view_azimuth)
177+
178+
# Ensure the figure is fully rendered
179+
fig.canvas.draw()
174180

175181
return fig
176182
end

0 commit comments

Comments
 (0)