0 读取保存图片
img = plt.imread(img_path) #读取图像
plt.imshow(cimg) #绘制图像
plt.savefig(file_path+'/result/{}-{}/{}.jpg'.format(style_name, content_name, '内容图')) # 保存图像
1 pyplot.plot常用参数:
color | 设置线的颜色 | |
---|---|---|
label | 设置线的标签 | 例如:lable=“自己” |
linestyle / ls | 设置线的风格 | 例如:linestyle=‘-.’,‘–’,‘-’,‘:’ |
marker | 设置点的风格 | 如下图 |
linewidth / lw | 设置线条粗细< |