hvplot icon indicating copy to clipboard operation
hvplot copied to clipboard

plotting themes

Open sophiamyang opened this issue 4 years ago • 7 comments

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!

sophiamyang avatar Dec 18 '20 17:12 sophiamyang

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)!

jlstevens avatar Feb 01 '21 16:02 jlstevens

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! )

CodeCox avatar Feb 07 '21 13:02 CodeCox

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!

jbednar avatar Feb 07 '21 17:02 jbednar

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.

jmakov avatar Jan 08 '22 22:01 jmakov

A PR would be gratefully accepted!

jbednar avatar Jan 09 '22 01:01 jbednar

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 😄

MarcSkovMadsen avatar Aug 31 '22 05:08 MarcSkovMadsen

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!

sophiamyang avatar Aug 31 '22 15:08 sophiamyang