import matplotlib.pyplot as plt
import pandas as pd
data = {
'年份': [2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025],
'A类总分': [165, 170, 175, 180, 185, 190, 197, 200, 194],
'B类总分': [155, 160, 165, 170, 175, 180, 187, 190, 184]
}
df = pd.DataFrame(data)
plt.figure(figsize=(10, 5))
plt.plot(df['年份'], df['A类总分'], marker='o', label='A类总分')
plt.plot(df['年份'], df['B类总分'], marker='o', label='B类总分')
plt.title('会计专硕历年分数线对比')
plt.xlabel('年份')
plt.ylabel('分数线')
plt.xticks(df['年份'])
plt.legend()
plt.grid()
plt.savefig('/mnt/data/accounting_masters_scores_trend.png')
plt.show()