程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Python data visualization tutorial drawing a beautiful double Y-axis line chart

編輯:Python

When visualizing the drawing , Sometimes you need to A few curves In the same diagram , But the range of these curve values is different , Different scales are required . If you use the same Y Axis scale , The curve change with small value will not be obvious ( Such as deep learning, training and testing Loss change ). Let's take the loss function change of a deep learning model training as an example , Beautifully painted double Y Axis line chart visualization , Explain the code implementation process , The result comes out first :

Read the recorded data :

import pandas as pd
df = pd.read_csv("./results/shiyan result01.csv")
df

Visual double Y Axonometric chart :

from mpl_toolkits

  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved