Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug]base backgound img. auto rotation? 背景图意外旋转? #9

Open
ZoomQuiet opened this issue Jan 2, 2018 · 0 comments
Open

Comments

@ZoomQuiet
Copy link

~ 能否支持自定义的背景图

env.

  • Darwin Kernel Version 16.7.0: Mon Nov 13 21:56:25 PST 2017
  • Python 2.7.10
  • download github mast repo., install by setup.py

err.

  • 用 iPhone 7 拍摄背景图片
  • 通过脚本完成 pyheatmap 的数据准备和输出调用
  • 发现:
    • 如果是正方形照片的话, 最终输出时
      • 背景图片被意外向左旋转了 90度
    • 如果照片是长方形的, 输出的热力图吻合直觉

关键代码类似:
pyheatmap.heatmap(save_as='hm.png'
, r=36
, base= 'bgm.jpg')

suggest:

应该是 heatmap.py#L63
引发的意外...被随机使用了 w/h, 在相等的时候...

建议及时修正 ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant