@@ -36,6 +36,8 @@ Save a plot to a file.
3636- `fig`: Plots figure object
3737- `save_path`: Path to save the plot
3838- `title`: Title of the plot
39+
40+ # Keyword arguments
3941- `data_type`: File extension (default: ".pdf")
4042"""
4143function save_plot (fig, save_path, title; data_type= " .pdf" )
@@ -62,13 +64,6 @@ function save_plot(fig, save_path, title; data_type=".pdf")
6264 @error " Error type: $(typeof (e)) "
6365 rethrow (e)
6466 end
65-
66- # if os.path.exists(full_path):
67- # logging.debug(f"File successfully saved to {full_path}")
68- # logging.debug(f"File size: {os.path.getsize(full_path)} bytes")
69- # else:
70- # logging.info(f"File does not exist after save attempt: {full_path}")
71- # end
7267end
7368
7469"""
@@ -78,6 +73,8 @@ Display a plot at specified DPI.
7873
7974# Arguments
8075- `fig`: Plots figure object
76+
77+ # Keyword arguments
8178- `dpi`: Dots per inch for the figure (default: 130)
8279"""
8380function show_plot (fig; dpi= 130 )
@@ -94,6 +91,8 @@ Plot a line segment in 3D with arrow.
9491- `segment`: Array of two points defining the segment
9592- `color`: Color of the segment
9693- `label`: Label for the legend
94+
95+ # Keyword Arguments
9796- `width`: Line width (default: 3)
9897"""
9998function plot_line_segment! (ax, segment, color, label; width= 3 )
@@ -150,6 +149,8 @@ Create a 3D plot of wing geometry including panels and filaments.
150149- title: plot title
151150- view_elevation: initial view elevation angle [°]
152151- view_azimuth: initial view azimuth angle [°]
152+
153+ # Keyword arguments
153154- zoom: zoom factor (default: 1.8)
154155"""
155156function create_geometry_plot (wing_aero:: WingAerodynamics , title, view_elevation, view_azimuth; zoom= 1.8 )
@@ -294,7 +295,9 @@ function plot_geometry(wing_aero::WingAerodynamics, title;
294295end
295296
296297"""
297- plot_distribution(y_coordinates_list, results_list, label_list; kwargs...)
298+ plot_distribution(y_coordinates_list, results_list, label_list;
299+ title="spanwise_distribution", data_type=".pdf",
300+ save_path=nothing, is_save=false, is_show=true)
298301
299302Plot spanwise distributions of aerodynamic properties.
300303
@@ -306,7 +309,7 @@ Plot spanwise distributions of aerodynamic properties.
306309# Keyword arguments
307310- `title`: Plot title (default: "spanwise_distribution")
308311- `data_type`: File extension for saving (default: ".pdf")
309- - `save_path`: Path to save plots
312+ - `save_path`: Path to save plots (default: nothing)
310313- `is_save`: Whether to save plots (default: false)
311314- `is_show`: Whether to display plots (default: true)
312315"""
0 commit comments