{"action":"created","issue":{"url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/6","repository_url":"https://api.github.com/repos/LumenResearch/heatmappy","labels_url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/6/comments","events_url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/6/events","html_url":"https://github.com/LumenResearch/heatmappy/issues/6","id":338123781,"node_id":"MDU6SXNzdWUzMzgxMjM3ODE=","number":6,"title":"Heatmap not drawn on assigning different point strength to different points","user":{"login":"anujshah1003","id":20814689,"node_id":"MDQ6VXNlcjIwODE0Njg5","avatar_url":"https://avatars0.githubusercontent.com/u/20814689?v=4","gravatar_id":"","url":"https://api.github.com/users/anujshah1003","html_url":"https://github.com/anujshah1003","followers_url":"https://api.github.com/users/anujshah1003/followers","following_url":"https://api.github.com/users/anujshah1003/following{/other_user}","gists_url":"https://api.github.com/users/anujshah1003/gists{/gist_id}","starred_url":"https://api.github.com/users/anujshah1003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujshah1003/subscriptions","organizations_url":"https://api.github.com/users/anujshah1003/orgs","repos_url":"https://api.github.com/users/anujshah1003/repos","events_url":"https://api.github.com/users/anujshah1003/events{/privacy}","received_events_url":"https://api.github.com/users/anujshah1003/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-04T04:07:48Z","updated_at":"2018-07-04T04:09:10Z","closed_at":null,"author_association":"NONE","body":""},"comment":{"url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/comments/402357470","html_url":"https://github.com/LumenResearch/heatmappy/issues/6#issuecomment-402357470","issue_url":"https://api.github.com/repos/LumenResearch/heatmappy/issues/6","id":402357470,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjM1NzQ3MA==","user":{"login":"anujshah1003","id":20814689,"node_id":"MDQ6VXNlcjIwODE0Njg5","avatar_url":"https://avatars0.githubusercontent.com/u/20814689?v=4","gravatar_id":"","url":"https://api.github.com/users/anujshah1003","html_url":"https://github.com/anujshah1003","followers_url":"https://api.github.com/users/anujshah1003/followers","following_url":"https://api.github.com/users/anujshah1003/following{/other_user}","gists_url":"https://api.github.com/users/anujshah1003/gists{/gist_id}","starred_url":"https://api.github.com/users/anujshah1003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anujshah1003/subscriptions","organizations_url":"https://api.github.com/users/anujshah1003/orgs","repos_url":"https://api.github.com/users/anujshah1003/repos","events_url":"https://api.github.com/users/anujshah1003/events{/privacy}","received_events_url":"https://api.github.com/users/anujshah1003/received_events","type":"User","site_admin":false},"created_at":"2018-07-04T04:09:10Z","updated_at":"2018-07-04T04:09:10Z","author_association":"NONE","body":"I itried assigning different point strength to different points but the heatmap is not being drawn in that case. Below is my code:\r\nclass PILGreyHeatmapper(GreyHeatMapper):\r\n    def __init__(self, point_diameter, point_strength):\r\n        super().__init__(point_diameter, point_strength)\r\n\r\n    def heatmap(self, width, height, points,point_strength_type):\r\n        heat = Image.new('L', (width, height), color=255)\r\n        dot = (Image.open(_asset_file('450pxdot.png')).copy()\r\n                    .resize((self.point_diameter, self.point_diameter), resample=Image.ANTIALIAS))\r\n        if point_strength_type =='fixed':\r\n            dot = _img_to_opacity(dot, self.point_strength)\r\n            for x, y in points:\r\n                x, y = int(x - self.point_diameter/2), int(y - self.point_diameter/2)\r\n                heat.paste(dot, (x, y), dot)\r\n        elif point_strength_type=='variable':\r\n            for i in range(len(points)):\r\n                print ('point strength: ',self.point_strength[i] )\r\n                dot = _img_to_opacity(dot, self.point_strength[i])\r\n                x,y = points[i][0],points[i][1]\r\n                x, y = int(x - self.point_diameter/2), int(y - self.point_diameter/2)\r\n                heat.paste(dot, (x, y), dot)\r\n\r\n        return heat"}}
{"actor":{"display_login":"anujshah1003"}}