项目二: 数据可视化
文章平均质量分 67
a_newbie_007
这个作者很懒,什么都没留下…
展开
-
关于pygal
import json import pygal # 将数据加载到一个列表中 filename = 'btc_close_2017.json' with open(filename) as f: btc_date = json.load(f) # 创建5个列表,分别存储日期和收盘价 dates, months, weeks, weekdays, close = [], [], [], [], ...原创 2018-04-18 16:37:02 · 522 阅读 · 0 评论 -
15 章 生成数据
15.2.1 绘制简单图形画一个1-5的平方# 导入模块 import matplotlib.pyplot as plt squares = [1, 4, 9, 16, 25] # 将列表传给它 plt.plot(squares) # 打开matplotlib查看器,并显示所绘制的图形 plt.show()15.2.1 修改标签文字和线条粗细import matplotlib.pyp...原创 2018-04-18 16:38:09 · 139 阅读 · 0 评论