From 2e808d370eefd3954fad4ae950f221b9f30fa7ff Mon Sep 17 00:00:00 2001 From: Peter Sharpe Date: Tue, 1 Aug 2023 23:28:43 -0400 Subject: [PATCH] simplify syntax --- benchmarking/neuralfoil_point_validation.py | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/benchmarking/neuralfoil_point_validation.py b/benchmarking/neuralfoil_point_validation.py index 267bdab..68ec5be 100644 --- a/benchmarking/neuralfoil_point_validation.py +++ b/benchmarking/neuralfoil_point_validation.py @@ -24,7 +24,6 @@ fig, ax = plt.subplots(figsize=(8,5)) plt.xscale('log') -# cmap = plt.get_cmap("rainbow") cmap = LinearSegmentedColormap.from_list( "custom_cmap", colors=[ @@ -130,16 +129,9 @@ plt.ylim(bottom=-0.8) afax = ax.inset_axes([0.76, 0.802, 0.23, 0.23]) -afax.plot( - af.x(), - af.y(), - "k", alpha=0.7, - linewidth=1 -) afax.fill( - af.x(), - af.y(), - "k", alpha=0.2 + af.x(), af.y(), + facecolor=(0, 0, 0, 0.2), linewidth=1, edgecolor=(0, 0, 0, 0.7) ) afax.annotate( text=f"{af.name} Airfoil",