rabbl/heatmap
Composer 安装命令:
composer require rabbl/heatmap
包简介
A library to create colorful png-images from 2D-Grid arrays
关键字:
README 文档
README
Features
This library generates pixel images (png) from 2D-Grid values. You can setup a custom color spectrum for the interpolation.
Installation
Composer is used for installation. Add the following lines to your composer.json file:
"require": {
"rabbl/heatmap": "^1.1"
}
Or install it on the command line: composer require rabbl/heatmap
Usage
$heatMap = new HeatMap(); $heatMap->setData(array( [0,1,2,3,5,6,7,8,9], [0,1,2,3,5,6,7,8,9], [0,1,2,3,5,6,7,8,9], [0,1,2,3,5,6,7,8,9], [0,1,2,3,5,6,7,8,9], [0,1,2,3,5,6,7,8,9] )); $heatMap->setSpectrum('blue', 'green', 'yellow', 'red'); $fileName = $heatMap->createWithAbsoluteLimits($data, 0, 9);
Returns the temporary filename of the generated image.
统计信息
- 总下载量: 627
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-10-26