Skip to content

Commit aba857a

Browse files
committed
added third plot
1 parent 25a6384 commit aba857a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/plotting.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,20 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
297297
axs[1, 2].set_ylabel(L"Drag Coefficient $C_D$")
298298
axs[1, 2].legend()
299299

300+
# Gamma Distribution
301+
for (y_coordinates_i, result_i, label_i) in zip(y_coordinates_list, results_list, label_list)
302+
value = "$(round(result_i["cl"], digits=2))"
303+
axs[1, 3].plot(
304+
y_coordinates_i,
305+
result_i["gamma_distribution"],
306+
label=label_i
307+
)
308+
end
309+
axs[1, 3].set_title(L"\Gamma~Distribution", size=16)
310+
axs[1, 3].set_xlabel(L"Spanwise Position $y/b$")
311+
axs[1, 3].set_ylabel(L"Circulation~\Gamma")
312+
axs[1, 3].legend()
313+
300314
fig.tight_layout()
301315

302316
# # Gamma Distribution

0 commit comments

Comments
 (0)