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

heatmap intensity not reflecting correctly? #41

Open
mapapo1 opened this issue Aug 25, 2020 · 0 comments
Open

heatmap intensity not reflecting correctly? #41

mapapo1 opened this issue Aug 25, 2020 · 0 comments

Comments

@mapapo1
Copy link

mapapo1 commented Aug 25, 2020

Say I have a list of 5 locations with coordinates, and each location has a number I want to show on a heatmap, so I can visualize which loation has most 'hits'. For example

Location 1: x,y,80

Location 2: x,y,1

Location 3: x,y,20

Location 4: x,y,40

Location 5: x,y,30

I’m creating the heatmap by adding the location to the heatmap with the intensity set to the number of times the count is, so

heatmapLocations = []
for location in locations
                heatmapLocations.append((x,y,count))
heatmap = Heatmap(locations=heatmapLocations)

My heatmap is showing, and it shows the highest count as a red circle, so that’s correct, also location 3 with count 20 is shown as light yellow, which is also correct, but location 4 and 5 are shown the same as location 1, especially when I zoom in, as if they have the same density, although there value is half of location 1. How can I reflect this? I tried the different heatmap parameters as max_zoom, max, radius, etc, but can’t seem to get it right. I also tried to normalise my data by dividing the numbers by 100, so the values are 0.8, 0.2, etc. but with no effect. I think I'm missing something understanding the way the heatmap works.

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