plotnine icon indicating copy to clipboard operation
plotnine copied to clipboard

How to apply matplotlib styles/themes?

Open CavalloneChen opened this issue 3 years ago • 1 comments

I am aware that there is a theming system inside p9. I wonder if there is a way to apply already existed matplotlib styles directly to p9 plots? For examples themes defined in this repo https://github.com/garrettj403/SciencePlots .

CavalloneChen avatar May 13 '22 10:05 CavalloneChen

You cannot just apply matplotlib themes, you have to convert them into plotnine themes. And there are some aspects that are not themeable. e.g. point/line colors and styles, those are scale choices.

has2k1 avatar May 14 '22 18:05 has2k1