Outline
pycharm使用matplotlib绘制多条折线图
颜色
https://blog.csdn.net/weixin_43569478/article/details/107724780?ops_request_misc=&request_id=&biz_id=102&utm_term=matplotlib%20%E9%A2%9C%E8%89%B2&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduweb~default-0-107724780.pc_search_insert_es_download_v2&spm=1018.2226.3001.4187
代码
import matplotlib.pyplot as plt
import matplotlib.font_manager as fm #字体管理器
import pandas
BalancedSoftmaxCSV = pandas.read_csv(r'1/acc.csv')
x_data = [i for i in range(1,201)]
y_data = 100*BalancedSoftmaxCSV['train_all']
y_data2 = 100*BalancedSoftmaxCSV['val_fscore']
ln1, = plt.plot(x_data,y_data,color='blue',linewidth=0.5,linestyle='dotted')
ln2, = plt.plot(x_data,y_data2,color='blue',linewidth=0.5,linestyle='