hvplot
hvplot copied to clipboard
plotting themes
Is it possible to have different plotting themes in hvplot, like fonts in docs? For example, if there is a ‘Google Sheet’ theme, that’d be amazing. Because a lot of times, business requests plots to put into a Google Slide. And they have made some plots from Google Sheet already. So it’d be nice to be able to make similar style plots when we add new plots into the slide. Thanks!
Bokeh themes should work with hvplot
as the output is expected to be rendered with Bokeh. I don't know if hvplot has any special facilities to enable themes and I don't think there is a Bokeh theme that matches Google Sheets right now.
@sophiamyang If you want to contribute a Google Sheets style theme to Bokeh, I'm sure it would be appreciated (and then you could use it with hvplot)!
I'm using the Bokeh backend with hvplot, and I'm able to use holoviews to set a bokeh built-in-theme e.g.
import holoviews as hv
hv.renderer('bokeh').theme = 'dark_minimal'
The holoviews doc has a section titled Theming that covers this. It also shows how to setup a custom theme if you are so inclined - it's quite easy to copy an existing Theme(...)
class and modify bits of the json without having any deep understanding of it.
(PS. I'm watching #533 with great interest - cos I concur that it is 'contradictory' that the desired hvplot simplification often requires knowledge of the underlying stack. This puts me in an absurdish messy situation where I pay a high price for simplification because the abstraction of layers is very inconsistent ie. I need to still 'learn' chunks of holoviews and bokeh! )
As of now, #533 is aspirational, as we have general agreement that it's a good direction to move in, but no funding to make it happen. I hope to be able to convince some of our clients to make it a priority for us, but it will take a good bit of work and we're currently all paid to do other things!
I'm using the Bokeh backend with hvplot, and I'm able to use holoviews to set a bokeh built-in-theme e.g.
import holoviews as hv hv.renderer('bokeh').theme = 'dark_minimal'
This could be in the docs.
A PR would be gratefully accepted!
If you are up for it @sophiamyang, you could take a look at how styling can be achieved in the PR #895 and contribute a Google Sheets theme 😄
If you are up for it @sophiamyang, you could take a look at how styling can be achieved in the PR #895 and contribute a Google Sheets theme 😄
Thanks so much Marc!