- 授权协议: LGPL
- 开发语言: Python
- 操作系统: 跨平台
- 软件首页: https://github.com/oldj/pyheatmap
软件介绍
这是一个生成热图的小程序,基于 Python 和 PIL 开发。
程序截图:
点击图
热图
安装:
通过 pip 安装:
pip install pyheatmap
通过 easy_install 安装:
easy_install pyheatmap
通过源码安装:
git clone git://github.com/oldj/pyheatmap.git
cd pyheatmap
python setup.py install
使用示例:
# -*- coding: utf-8 -*-
import urllib
from pyheatmap.heatmap import HeatMap
def main():
# 下载测试数据
url = "https://raw.github.com/oldj/pyheatmap/master/examples/test_data.txt"
sdata = urllib.urlopen(url).read().split("\n")
data = []
for ln in sdata:
a = ln.split(",")
if len(a) != 2:
continue
a = [int(i) for i in a]
data.append(a)
# 开始绘制
hm = HeatMap(data)
hm.clickmap(save_as="hit.png")
hm.heatmap(save_as="heat.png")
if __name__ == "__main__":
main()
Google API开发详解
江宽,龚小鹏等编 / 电子工业 / 2008-1 / 59.80元
《Google API开发详解:Google Maps与Google Earth双剑合璧》从易到难、由浅入深、循序渐进地介绍了Google Maps API和Google Earth API的开发技术。《Google API开发详解:Google Maps与Google Earth双剑合璧》知识讲解通俗易懂,并有大量的实例供读者更加深刻地巩固所学习的知识,帮助读者更好地进行开发实践。 《Go......一起来看看 《Google API开发详解》 这本书的介绍吧!
HTML 压缩/解压工具
在线压缩/解压 HTML 代码
JS 压缩/解压工具
在线压缩/解压 JS 代码
