JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.59k stars 52 forks source link

Is there a way to use the standard ggplot theme with lets-plot? #221

Closed prasoon2211 closed 2 years ago

prasoon2211 commented 4 years ago

Hi, Is there a way to achieve the standard ggplot theme with lets-plot plots? Perhaps something similar to sns.set()? I didn't find anything in the docs but maybe I missed it.

alshan commented 4 years ago

No, customization of the plot elements beyond removing axis lines/ticks or labels is not yet implemented. What are you missing most from the standard ggplot theme? Background or grid lines or both? ) image

prasoon2211 commented 4 years ago

Nothing specific really - I was just giving lets-plot a try to see how well it works and the default theme wouldn't fit in with some of my other plots so I was wondering is there is an easy way to switch over to default ggplot theme 😅

Personally, the background, the default ggplot colour scheme for the various geoms and the font would be my top 3.

alshan commented 4 years ago

Thank you for the feedback!

holgerbrandl commented 3 years ago

I'd also love to have an option to bring back ticklines (readability) and background (better overall contrast of plot wrt to background).

Theming goes clearly beyond those 2 aspects and includes many other attributes that a user may want to customize. E.g. see https://ggplot2.tidyverse.org/reference/#section-themes and for a complete listing https://ggplot2.tidyverse.org/reference/theme.html

alshan commented 2 years ago

Themes were added in

holgerbrandl commented 2 years ago

That's wonderful news. Thanks a lot.

Is there a way to set a default theme (e.g. in a jupyter notebook)?

alshan commented 2 years ago

Unfortunately no, at the moment there is no way to set a default theme. I've created a ticket: #495