Initial commit: Python learning project with examples and exercises
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
# 设置图片清晰度
|
||||
plt.rcParams['figure.dpi'] = 300
|
||||
|
||||
# 设置中文字体
|
||||
plt.rcParams['font.sans-serif'] = ['WenQuanYi Zen Hei']
|
||||
|
||||
# 绘制折线图
|
||||
plt.plot(df['T/℃'], df['Vf/μA'], marker='o')
|
||||
|
||||
# 添加图标题和轴标签
|
||||
plt.title('T/℃ 与 Vf/μA 的关系')
|
||||
plt.xlabel('T/℃')
|
||||
plt.xticks(rotation=45)
|
||||
plt.ylabel('Vf/μA')
|
||||
|
||||
# 显示图表
|
||||
plt.show()
|
||||
Reference in New Issue
Block a user