当前位置:网站首页>SciencePlot-Science Plot
SciencePlot-Science Plot
2022-08-05 21:21:00 【I am deep, I am deep】
import matplotlib.pyplot as pltplt.rcParams['font.sans-serif']=['SimHei'] #display Chinese tagsplt.rcParams['axes.unicode_minus']=True #These two lines need to be set manuallywith plt.style.context(['science']):fig , ax = plt.subplots(figsize=(4,2))ax.plot(train_loss_list,label = 'Train loss')#ax.autoscale(tight = True)ax.legend()ax.set_xlabel('Epoch')ax.set_ylabel('Loss')fig.savefig('trainloss.jpg',dpi = 300) 边栏推荐
猜你喜欢
随机推荐
【opencv图像处理】--3.图像运算、基本变换、仿射变换
【树莓派】初始化系统环境安装
2.【openCV常用函数模板】
Chery Arrizo 8 will be officially launched on September 26, and the product lineup will be expanded
SynthText流程解读 - 不看代码不知道的那些事
【LeetCode】39、组合总和
selenium测试浏览器指纹
Shell(5)数组
字符串拼接
测试1111
Win10怎么打开msixbundle安装包
链表系列① -- 移除链表元素
PHP毕业设计选题和毕业论文怎么写,答辩流程是怎样的
【php】设置php显示/隐藏错误信息
win10激活(二)
dart 学习记录 - 更新中
day15--使用postman进行文件的上传与下载
我们公司是初次使用OKR,在落地时要特别注意哪些事情?
信息系统项目管理师---第十一章项目风险管理
PHP graduation design topic and how to write, graduation thesis reply what is the process









