style(plot_training_data): 调整图表字体大小以提升可读

This commit is contained in:
carry 2025-04-29 18:34:55 +08:00
parent 7dad189b8c
commit 083542069c
2 changed files with 10 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 125 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View File

@ -1,6 +1,16 @@
import pandas as pd
import matplotlib.pyplot as plt
# 设置全局字体大小
plt.rcParams.update({
'font.size': 16, # 全局字体大小
'axes.titlesize': 20, # 标题字体大小
'axes.labelsize': 16, # 坐标轴标签字体大小
'xtick.labelsize': 14, # x轴刻度标签字体大小
'ytick.labelsize': 14, # y轴刻度标签字体大小
'legend.fontsize': 14, # 图例字体大小
})
# 读取CSV文件
data = pd.read_csv('training_data.csv')