has2k1 / has2k1/plotnine

Overwriting default_aes

Open
#384 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

For a custom theme, I'd like to change the default point color away from black.
I can hack this for all coming ggplots by changing the geom_point default_aes,
but I'd like to have a per plot API for this.

Any suggestions how we'd implement this?
Perhaps we can get away with not having an API but using the first scale_color entry,
just like we'd do if there was a mapping?
(Right now the scale_color complains about not being used).

My theme set's color and fill scales anyhow.

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 reviewing how custom themes set geom_point default_aes and how the first scale_color entry is handled when no mapping exists. Clarify whether the goal is a per-plot API or automatic use of the first color scale, then define the expected behavior for unused scales before identifying implementation and test locations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.