has2k1 / has2k1/plotnine

Feature request: add plot_annotation to add Titles, subtitles and captions to composite plots

Open
#966 3 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

In R, you can add a title, subtitle, and caption to a combined plot using plot_annotation.
Would be great if plotnine could add that as well!

patchwork_output_2<- patchwork_layout_2 +
plot_annotation(
title = 'Figure 7. Fiscal Sector Developments',
subtitle = '(In US dollars)',
caption="Sources: ",
theme = theme(plot.title = element_text(color=blue,
family=primary_font,face="bold",
size=20, hjust = 0.5),

            plot.subtitle = element_text(color="black",
                                         family=primary_font,
                                         face="plain",
                                         hjust=0.5,
                                         size=20),
            plot.caption = element_text(hjust = 0,size=12,
                                        family=primary_font,
            ),
            plot.margin = margin(0.75,0.5,0.5,0.5, "lines")

))

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 any implementation files, tests, or entry points. Begin by locating how plotnine handles composite plots and plot-level titles or themes, then define the annotation API and verify that titles, subtitles, captions, and their styling appear correctly on combined plots.

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.