Feature request: add rotation_mode param to geom_text

Open Beginner friendly
#1,151 1 comment 0 reactions 0 assignees View on GitHub

@hisermann is already working on this.

Since Nov 9, 2026.

  • #1152 by @hisermann — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
66/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Start by reading how geom_text handles the angle and ha parameters, then inspect how element_text supports rotation_mode. Add support for the requested rotation_mode="anchor" behavior and check that rotated text aligns before rotation; the issue does not name a test file, so locate the relevant geom_text tests.

Written by the indexing model from the issue text.

Description

Feature

I would really appreciate a rotation_mode parameter in geom_text, for better alignment of rotated text.

eg:

p9.geom_text(aes(x="x", y="y", angle="angle"), ha="left",rotation_mode="anchor")

to align the text before the rotation, as it already exists in element_text.

Dominant language
Python
Stars
4.8k
Forks
269
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from has2k1/plotnine

All issues in has2k1/plotnine

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.