python笔记:5.1.1matplotlib_函数绘图_直线

# -*- coding: utf-8 -*-
"""
Created on Sat Jun  1 23:18:28 2019

@author: User
"""

import matplotlib as mpl
import matplotlib.pyplot as plt

plt.plot([0,1],[0,1])
plt.title('a straight line')
plt.xlabel("time")
plt.ylabel("distance")
plt.savefig('ch4_156.svg',bbox_inches='tight')

运行:

python笔记:5.1.1matplotlib_函数绘图_直线

上一篇:Nginx安装及配置


下一篇:Codeforces Round #156 (Div. 2)E. Furlo and Rublo and Game【SG】