Skip to content

Commit 02b5f69

Browse files
committed
first plot nice now
1 parent 6528859 commit 02b5f69

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/plotting.jl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -262,16 +262,23 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
262262
# CL plot
263263
for (y_coordinates_i, result_i, label_i) in zip(y_coordinates_list, results_list, label_list)
264264
value = "$(round(result_i["cl"], digits=2))"
265+
println(label_i)
266+
if label_i == "LLT"
267+
label = label_i * L" $~C_L$: " * value
268+
else
269+
label = label_i * L" $C_L$: " * value
270+
end
265271
axs[1, 1].plot(
266272
y_coordinates_i,
267273
result_i["cl_distribution"],
268-
label=label_i * L" $C_L$: " * value
274+
label=label
269275
)
270276
end
271-
axs[1, 1].set_title(L"$C_L$ Distribution")
277+
axs[1, 1].set_title(L"$C_L$ Distribution", size=16)
272278
axs[1, 1].set_xlabel(L"Spanwise Position $y/b$")
273279
axs[1, 1].set_ylabel(L"Lift Coefficient $C_L$")
274280
axs[1, 1].legend()
281+
fig.tight_layout()
275282

276283
# # CL Distribution
277284
# plot!(res[1],

0 commit comments

Comments
 (0)