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: