-
-
Notifications
You must be signed in to change notification settings - Fork 404
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
Add Radial Heatmap #2139
Comments
@mansenfranzen Thanks for the detailed breakdown, I'd love to have radial heatmaps in holoviews. It's great you started looking into plotting implementations already without any reference documentation to guide you. We used to have the concept of Alternatively you could also just override the |
@philippjfr Thanks for the hints. Using In addition, I've just stumbled across |
No that is probably what you should use. That said the API used by it could probably be improved still since there are some things are non-obvious. I'll quickly outline how to write such a plot class and if you still want to dive in you can give feedback on improving the API later.
Let me know if you run into problems, you can always ask me questions directly on Gitter. |
Either would be okay, the default |
Thanks, this will guide me for now using |
As a quick aside, I don't know your preferred workflow but I usually prototype new plots in a notebook (e.g. see https://anaconda.org/philippjfr/bars/notebook) and then move it into the code. I think writing a separate RadialHeatMapPlot makes sense, you can simply override the default HeatMapPlot for now using |
Writing the Chord plot (#2138) I ran into several limitations/bugs in the CompositeElementPlot implementation, which will probably bite you too. I'll try to get a PR merged addressing these limitations and will keep you updated on that. |
Ok thanks. I'm going to implement the radial heatmap during this weekend using the existing |
I fixed some of the more important issues in #2140, so you should be able to implement it now. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Proposal
Radial heatmaps are great for visualizing periodicity. I would like to help adding radial heatmaps to holoviews.
I've implemented radial heatmaps in bokeh, as you can see here:
The link to the notebook including the code can be found here.
First steps
I started to take a closer look on how to implement a radial heatmap in holoviews having a working bokeh example. Here are some considerations:
get_data
method needs to be adjusted to compute radius, radients and so on (which is no big deal having a working example)Issues
However, I've ran into 2 concrete problems:
Since radial and rectular heatmaps are very similar, they could be represented within the same class (e.g. HeatmapPlot). To select either a radial or rectular heatmap, a parameter could be used like in grouped or stacked bar plots. However, the underlying glyphs for radial (annular_wedge) and rectular (rect) heatmaps differ. By design, a plot class may only have one single key for
_plot_methods
, right? Therefore, my current guess is to create a new plotting class (and hence a new element class).The radial heatmap requires axis labels to be positioned manually since radial axis to not exist. Because of that, I need to add text glyphs to the annular_wedge glyphs. Furthermore, I would like to add some visual marker to increase readability of the chart, like those bold white lines in the following plot which results in 3 different glyphs (annular_wedge, text and multi_line). How can I integrate different glyphs in the same plot? Overlay?:
Thanks for your advice.
The text was updated successfully, but these errors were encountered: