-
Notifications
You must be signed in to change notification settings - Fork 157
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(density) from scattered dots? #81
Comments
There's no built in function like matplotlib provides. The easiest way is to write an interpolation function and use |
I have tried to compute a 3D histogram based on scatter data of the format [0, 0.8, 0.2], [0.3, 0.4 ,0.3] etc.. I then smooth this histogram with a Gaussian kernel. I finally create a dictionary of the smoothed histogram pointing to each coordinate e.g. (0, 0, 0), (0, 0, 1) ... (1, 1, 1) to be mapped to the simplex space.
I've attached my result. I'm not entirely too sure what is going on and whether I am calling the Any help would be appreciate @marcharper and thanks again for a beautiful package :) |
For heatmaps I think you can simply scale up your points -- for |
Glad to hear it! Let me know when you get published and I'll add your paper to the citations page. |
From here, is there a way to scale back the labels on the axis so they go between 0 and 1? |
Yes, you can directly overwrite the axes' values using matplotlib's functions for the outer plot (the usual x-axis and y-axis), or the analogous ternary functions if you are using the ternary axes markings on the three triangle sides. See the example here for the matplotlib case. |
This was a very useful piece of code, I think it would be great if it would be part of the ternary codebase! |
+1 to this! Supremely helpful, and definitely something that would be a nice addition if possible!
|
Hi~ I'm wondering whether there is a easy way to plot "density" from pure dots? So I'm able to make a scatter plot from dots but what I would like to have is to get a density heat map. But from my understanding, the current heat map function needs a dictionary feed in.
Thanks a lot!
The text was updated successfully, but these errors were encountered: