has2k1 / has2k1/plotnine

Relative sizing for `element_text`

Open
#911 1 comment 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

In ggplot2, relative sizing for text within a plot can be conveniently achieved using the rel function, as shown in the following example:

plot + theme(axis.title.x = element_text(size = rel(1.5)))

I was wondering if there is a similar feature in plotnine that allows for relative text sizing. Besides, I'm also curious whether it is possible to resize all text relatively in a plot at a time. Any help would be greatly appreciated!

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

The issue does not name a file, test, or entry point. Start by checking whether plotnine exposes a rel-like function or a theme-wide text-size setting; done means documenting or implementing supported relative sizing for individual text elements and for all plot text.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, r
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.