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 itself is not representative #32

Closed
Quake4Life opened this issue Apr 11, 2024 · 7 comments
Closed

Heatmap itself is not representative #32

Quake4Life opened this issue Apr 11, 2024 · 7 comments

Comments

@Quake4Life
Copy link

It woould be cool if the color grading could be set up differently because for now my scheme makes no sense with overused Spacebar and almost white "Q" with 4000+ presses
image

@suurjaak
Copy link
Owner

I suppose the color grading options could also be exposed in configuration file, so that they can at least be overridden by the user. For example, the current default heatmap settings are: blue from 25%, green from 55%, yellow from 85% and red from 100% (percentage being the ratio of a key count compared to the most frequent key count).

However, that would not really solve the problem, as one would need to start tailoring the settings to fit the data, but the data changes..

Maybe a solution would be to constrain the topmost one or two keys if they are way more frequent than the rest, then they would not skew the results so much..

Out of curiosity, what are the top 10 keys from your view? From some bigger data in my own logs, spacebar is 7th and the topmost is Left Ctrl:
image

@Quake4Life
Copy link
Author

Quake4Life commented Apr 12, 2024 via email

@suurjaak
Copy link
Owner

Btw, looks like the image attachment did not come through.

@suurjaak
Copy link
Owner

FYI, I'm currently experimenting with using a log scale for the keyboard heatmap, so that superfrequent keys do not fade out lesser keys so strongly.

The result is looking much better for me. And, rather different as well, e.g. before:
image

vs after:
image

I will tinker with this a bit and make a new release, in the not too far future.

@Quake4Life
Copy link
Author

Quake4Life commented Apr 16, 2024 via email

@suurjaak
Copy link
Owner

The new v1.11 release should show the keyboard heatmap in better highlighting.

Also, if you like, you can now override the heatmap colours. By specifying a custom gradient for heatmap display options in configuration file:

HeatmapDisplayOptions = {"keyboard": {"gradient": {0.25: "blue", 0.55: "green", 0.85: "yellow", 1.0: "red"}}}

The numbers in gradient stand for percentage of total events; so in the default colouring above it starts from blue and ranges through green and yellow towards red. The colour can be any standard web colour, including colour codes like "#FF0000" or "rgb(255, 0, 0)".

The heatmap display options can be applied to specific inputs like "keyboard" or "mouse", more specific event types like "combos" or "clicks", or to all heatmaps if given without nesting.

@Quake4Life
Copy link
Author

Quake4Life commented Apr 17, 2024 via email

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

2 participants