Feature request: add plot_annotation to add Titles, subtitles and captions to composite plots
Nobody has claimed this yet.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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