# -*- 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')
运行: