v05 plot update

This commit is contained in:
13339479676 2022-01-30 16:55:50 +08:00
parent 757e61a6ee
commit 9975c40122
2 changed files with 8 additions and 3 deletions

8
.gitignore vendored
View File

@ -1,7 +1,10 @@
# 图片格式
*.jpg
*.jpeg
*.png
*.svg
# 视频格式
*.mp4
*.avi
.ipynb_checkpoints
@ -15,17 +18,18 @@ __pycache__
*.txt
*.csv
# 参数文件
*.yaml
*.json
# 压缩文件
# 压缩文件格式
*.zip
*.tar
*.tar.gz
*.rar
/CompressFrames
# 字体
# 字体格式
/fonts
/utils/fonts
*.ttc

View File

@ -62,6 +62,7 @@ def createLineChart(frames_y, date_list, time_list):
# chart保存信息
os.makedirs("DateFrames", exist_ok=True) # 创建DateFrames目录
date_frames_chart_path = f'{ROOT_PATH}/DateFrames/date_frames_{date_list[0]}.png'
# 保存图像
plt.savefig(date_frames_chart_path, dpi=300, bbox_inches='tight')
@ -69,7 +70,7 @@ def createLineChart(frames_y, date_list, time_list):
chart_endTime = time.time() # 作图开始时间
chart_totalTime = chart_endTime - chart_startTime # 作图用时
print(
f'日期-帧数图创建成功!用时:{time_format(chart_totalTime)},已保存在{date_frames_chart_path}')
f'日期-帧数图创建成功!用时:{time_format(chart_totalTime)},已保存在{date_frames_chart_path},帧数为{sum(frames_y)}')
# csv2chart