style(plot_training_data): 调整图表字体大小以提升可读
This commit is contained in:
parent
7dad189b8c
commit
083542069c
Binary file not shown.
Before Width: | Height: | Size: 125 KiB After Width: | Height: | Size: 128 KiB |
@ -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')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user