From e8820a73c1e48a89d1c793ab0088e53ed74bde0d Mon Sep 17 00:00:00 2001 From: DXC Date: Mon, 22 Jun 2026 17:16:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(viz=5Freports):=20plot=5Fspectrum=5Fby=5Fpa?= =?UTF-8?q?rameter=20legend=20=E7=A7=BB=E5=87=BA=E7=94=BB=E5=B8=83?= =?UTF-8?q?=E9=98=B2=E6=AD=A2=E9=81=AE=E6=8C=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/postprocessing/visualization_reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postprocessing/visualization_reports.py b/src/postprocessing/visualization_reports.py index 0071ed5..65b5a78 100644 --- a/src/postprocessing/visualization_reports.py +++ b/src/postprocessing/visualization_reports.py @@ -254,7 +254,7 @@ class WaterQualityVisualization: ax.set_ylabel('光谱反射率', fontsize=14, fontweight='bold') ax.set_title(f'{parameter_column} - 不同参数值的光谱曲线对比', fontsize=16, fontweight='bold') - ax.legend(loc='best', fontsize=10) + ax.legend(loc='upper left', fontsize=10, bbox_to_anchor=(1.02, 1), borderaxespad=0) ax.grid(True, alpha=0.3) if wavelength_range: