键盘热图图像发生器
tapmap的Python项目详细描述
点击地图
使用单个命令生成高质量、可自定义的键盘热图。
安装:
使用pip install tapmap
安装包。
用法:
tapmap --help
将生成以下帮助消息:
usage: tapmap [-h] [-d D] [-c C] input_file output_file
Generate a keyboard heatmap from a text file.
positional arguments:
input_file the name of the file to process
output_file the name of the .png file to output
optional arguments:
-h, --help show this help message and exit
-d D dpi of the output image (defaults to 600)
-c C matplotlib cmap argument:
https://matplotlib.org/users/colormaps.html (defaults to
"viridis")
要从输入文件input.txt
生成键盘热图map.png
,请使用:tapmap input.txt map.png
tapmap还支持所有matplotlib颜色映射:tapmap input.txt map.png -c winter
有79个彩色地图可供选择,请从the matplotlib reference.