has2k1 / has2k1/plotnine

Dark background theme

Open
#164 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Feature
Dominant language
Python
Stars
4.8k
Forks
254
Avg merge
10h 35m
Merged PRs (30d)
9

Description

Thanks for plotnine, I'm a big fan!

I like working with a dark background. Using plotnine.themes.theme_dark gives this image, which has a lot of light area which doesn't work well on a dark background.

image

from plotnine import ggplot, qplot, aes, geom_point, geom_smooth, geom_bar, ggsave, geom_density, theme_set, theme_dark, theme_xkcd
import pandas as pd

theme_set(theme_dark())
df = pd.DataFrame({'a': [1,2,3], 'b': [4,5,6]})
ggplot(aes(x='a', y='b'), data=df) + geom_point()

Might it be possible to add a dark theme like theme_solarized_2 from ggthemes?

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating plotnine.themes.theme_dark and reviewing how the existing theme is assembled. Compare the requested appearance with ggthemes' theme_solarized_2 reference; done means plotnine provides a dark theme that produces the requested low-light-background appearance with the example code.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.