matplotlib模块画坐标图

import matplotlib.pyplot as plt

x_data = ['2011', '2012', '2013', '2014', '2015', '2016', '2017']
y_data = [58000, 60200, 63000, 71000, 84000, 90500, 107000]

plt.plot(x_data, y_data)
posted @ 2020-11-03 23:03  疯狂列表推导式  阅读(100)  评论(0编辑  收藏  举报