Skip to content

Commit aa05d48

Browse files
committed
Omit legend
1 parent 46e525d commit aa05d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AirfoilPrep_pywrapper.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ function plot(self::Polar; geometry::Bool=true, label="", style=".-",
294294
ax.grid(true, color="0.8", linestyle="--")
295295
end
296296

297-
if pi==length(to_plot); ax.legend(; legend_optargs...); end;
297+
if pi==length(to_plot) && legend_optargs!=nothing; ax.legend(; legend_optargs...); end;
298298
end
299299
end
300300

0 commit comments

Comments
 (0)