has2k1 / has2k1/plotnine

fontstyle does not work with geom_text

Open
#941 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

possibly related to #940

Using plotnine version '0.15.0a2.post3+g2cdc487f'

import pandas as pd
from plotnine import *

df = pd.DataFrame({"x": [1, 2, 3], "fontstyle": ["normal", "italic", "oblique"]})

(ggplot(df, aes(1, "x")) + geom_text(aes(label="fontstyle", fontstyle="fontstyle")))
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 running the provided Python example with plotnine 0.15.0a2.post3+g2cdc487f and inspect how geom_text handles the mapped fontstyle aesthetic. Done means the normal, italic, and oblique labels render with their corresponding styles.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.