diff --git a/src/postprocessing/visualization_reports.py b/src/postprocessing/visualization_reports.py index 75f354f..0071ed5 100644 --- a/src/postprocessing/visualization_reports.py +++ b/src/postprocessing/visualization_reports.py @@ -133,7 +133,7 @@ class WaterQualityVisualization: ax.set_xlabel(f'真实值 ({target_name})', fontsize=14, fontweight='bold') ax.set_ylabel(f'预测值 ({target_name})', fontsize=14, fontweight='bold') ax.set_title(f'{target_name} - 真实值 vs 预测值', fontsize=16, fontweight='bold') - ax.legend(loc='upper left', fontsize=11) + ax.legend(loc='upper left', fontsize=11, bbox_to_anchor=(1.02, 1), borderaxespad=0) ax.grid(True, alpha=0.3) # 添加指标文本框