Adding subtitle and caption
See original GitHub issueIt would be nice to have the caption and subtitle fields.
From https://ggplot2.tidyverse.org/reference/labs.html
p + labs(title = "New plot title", subtitle = "A subtitle")
# The caption appears in the bottom-right, and is often used for
# sources, notes or copyright
p + labs(caption = "(based on data from ...)")
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Add subtitles and captions - YouTube Help - Google Support
Create subtitles and captions. Sign in to YouTube Studio. From the left menu, select Subtitles. Click the video that you'd like to edit....
Read more >Add Subtitles & Captions Online For Free - Kapwing
Use Kapwing's easy editor to add subtitles or captions to your video online. Type your subtitles into the editor or upload SRT files...
Read more >Add Subtitles to Video - Easy, Online, Free - VEED.IO
How to Add Subtitles to a Video · Select a Video File · Manually type, auto transcribe, or upload subtitle file · Edit...
Read more >Captions and subtitles – Help Center - Vimeo
Add captions or subtitles to your video Click Settings from within the Closed captions menu (to the right of Transcript). Click the “+”...
Read more >How to Add Captions or Subtitles to a Video - TechSmith
Inside Camtasia, you can add captions by going under the Audio Effects in the side panel and then Captions. screenshot of how to...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would also really appreciate this feature; btw Plotnine is amazing, thanks for all your hard work.
If anyone needs an slightly hacky, interim method for getting a subtitle that works most of the time, what I’ve done recently is (for single plots) I’ve made them into a 1 by 1 facet plot. So in pandas I set the subtitle as an additional column, with the same value throughout (e.g.,
df['subtitle'] = "Subtitle text"
and passed that as the faceting variable intofacet_wrap.
You can then use the theme params forstrip_text
to make it look as similar to a ggplot sub-title as possible. Naturally this won’t work with actual faceted plots, but it’s a start. 😃 Haven’t figured out anything for captions, yet 😕Very much looking forward to seeing this feature land. Thanks for the amazing work on the package so far!