-
-
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
Objects produced by renderer.get_plot do not display in the notebook #2587
Comments
If I remember correctly, there was a thing to make the plotting classes themselves display themselves with the display hooks. I assume that will no longer work with the changes made for Jupyterlab compatibility (@philippjfr ?) ... This was really meant as a convenience for developers and not for users. @abourrier Why not just view |
In my use case, I have (x,y,z) aggregated data that I visualize as a As a workaround to this limitation, I previously used the |
Sounds like you'd be much better served by some extension to this #604 which would make the last displayed frame and key available. For the time being I'd be in favor of supporting Plot instances in the I'd only recommend using that for debugging or for the time being as a workaround. |
Usage would be as follows: obj = hv.Curve([1, 2, 3])
plot = hv.renderer('bokeh').get_plot(obj)
hv.ipython.display(plot) |
Making the latest key available would indeed be sufficient and more practical in the mentioned use case. Additionally, my colleagues and I use plot handles when we want to finely customize the plot, such as modifying xlabels fonts/colors. It is sometimes very useful to have fine-grained control over the plot to maximize the amount of information conveyed by the visualization. Therefore being able to get a handle on the plot produced by holoviews is still pretty useful to us, even though it may not be the initial intent. |
That's true, although we do provide a mechanism to do that via the def customize_plot(plot, element):
plot.handles['xaxis'].major_label_text_color = 'red'
plot.state.border_fill_color = 'gray'
hv.Curve([1, 2, 3]).options(finalize_hooks=[customize_plot]) |
The change to allow the display function to display plots is now merged so I'll close this. |
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. |
Since holoviews 1.9.10, this code
yields a text output instead of the proper figure:
It seems to work neither with matplotlib backend nor with other types of figures.
The text was updated successfully, but these errors were encountered: