Skip to content

Commit fcabad7

Browse files
committed
enable saving of plot
1 parent 48fa55b commit fcabad7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/plotting.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -276,14 +276,14 @@ Plot spanwise distributions of aerodynamic properties.
276276
- `title`: Plot title (default: "spanwise_distribution")
277277
- `data_type`: File extension for saving (default: ".pdf")
278278
- `save_path`: Path to save plots
279-
- `is_save`: Whether to save plots (default: true)
279+
- `is_save`: Whether to save plots (default: false)
280280
- `is_show`: Whether to display plots (default: true)
281281
"""
282282
function plot_distribution(y_coordinates_list, results_list, label_list;
283283
title="spanwise_distribution",
284284
data_type=".pdf",
285285
save_path=nothing,
286-
is_save=true,
286+
is_save=false,
287287
is_show=true)
288288

289289
length(results_list) == length(label_list) || throw(ArgumentError(
@@ -416,10 +416,10 @@ function plot_distribution(y_coordinates_list, results_list, label_list;
416416

417417
fig.tight_layout()
418418

419-
# # Save and show plot
420-
# if is_save
421-
# save_plot(fig, save_path, title, data_type=data_type)
422-
# end
419+
# Save and show plot
420+
if is_save
421+
save_plot(fig, save_path, title, data_type=data_type)
422+
end
423423

424424
if is_show
425425
show_plot(fig)

0 commit comments

Comments
 (0)